Skip to content

Commit 41e2bf1

Browse files
Do not send html content to client side.
1 parent 203662f commit 41e2bf1

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

InAppClasses.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ class IterableInAppMessage {
8989
readonly trigger: IterableInAppTrigger
9090
readonly createdAt?: Date
9191
readonly expiresAt?: Date
92-
readonly content: IterableInAppContent
9392
readonly saveToInbox: Boolean
9493
readonly inboxMetadata: IterableInboxMetadata
9594
readonly customPayload?: any
@@ -100,7 +99,6 @@ class IterableInAppMessage {
10099
trigger: IterableInAppTrigger,
101100
createdAt: Date | undefined,
102101
expiresAt: Date | undefined,
103-
content: IterableInAppContent,
104102
saveToInbox: Boolean,
105103
inboxMetadata: IterableInboxMetadata,
106104
customPayload: any | undefined,
@@ -110,7 +108,6 @@ class IterableInAppMessage {
110108
this.trigger = trigger
111109
this.createdAt = createdAt
112110
this.expiresAt = expiresAt
113-
this.content = content
114111
this.saveToInbox = saveToInbox
115112
this.inboxMetadata = inboxMetadata
116113
this.customPayload = customPayload
@@ -133,7 +130,6 @@ class IterableInAppMessage {
133130
if (expiresAt) {
134131
expiresAt = new Date(expiresAt as number)
135132
}
136-
let content = IterableHtmlInAppContent.fromDict(dict["content"])
137133
let saveToInbox = dict["saveToInbox"] as Boolean
138134
let inboxMetadata = IterableInboxMetadata.fromDict(dict["inboxMetadata"])
139135
let customPayload = dict["customPayload"]
@@ -145,7 +141,6 @@ class IterableInAppMessage {
145141
trigger,
146142
createdAt,
147143
expiresAt,
148-
content,
149144
saveToInbox,
150145
inboxMetadata,
151146
customPayload,

index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ export class IterableInAppMessage {
133133
readonly trigger: IterableInAppTrigger
134134
readonly createdAt?: Date
135135
readonly expiresAt?: Date
136-
readonly content: IterableInAppContent
137136
readonly saveToInbox: Boolean
138137
readonly inboxMetadata: IterableInboxMetadata
139138
readonly customPayload?: any
@@ -144,7 +143,6 @@ export class IterableInAppMessage {
144143
trigger: IterableInAppTrigger,
145144
createdAt: Date | undefined,
146145
expiresAt: Date | undefined,
147-
content: IterableInAppContent,
148146
saveToInbox: Boolean,
149147
inboxMetadata: IterableInboxMetadata,
150148
customPayload: any | undefined,

ios/RNIterableAPI/ReactIterableAPI.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ class ReactIterableAPI: RCTEventEmitter {
221221
return config
222222
}
223223

224-
225-
// TODO: convert CommerceItem to Codable
226224
private static func dictionaryToCommerceItem(dict: [AnyHashable: Any]) -> CommerceItem? {
227225
guard let id = dict["id"] as? String else {
228226
return nil
@@ -262,7 +260,6 @@ class ReactIterableAPI: RCTEventEmitter {
262260
dict["trigger"] = inAppTriggerToDict(trigger: message.trigger)
263261
dict["createdAt"] = message.createdAt.map { $0.iterableIntValue }
264262
dict["expiresAt"] = message.expiresAt.map { $0.iterableIntValue }
265-
dict["content"] = inAppContentToDict(content: message.content)
266263
dict["saveToInbox"] = message.saveToInbox
267264
dict["inboxMetadata"] = inboxMetadataToDict(metadata: message.inboxMetadata)
268265
dict["customPayload"] = message.customPayload

0 commit comments

Comments
 (0)