Skip to content

Commit 4555627

Browse files
committed
[MOB-10364] Update according to new discussiom
1 parent 95c0bc6 commit 4555627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/in-app/InAppPersistence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ extension IterableInAppMessage: Codable {
309309
try? container.encode(isJsonOnly ? 1 : 0, forKey: .jsonOnly)
310310

311311
try? container.encode(trigger, forKey: .trigger)
312-
try? container.encode(saveToInbox, forKey: .saveToInbox)
312+
try? container.encode(saveToInbox && !isJsonOnly, forKey: .saveToInbox)
313313
try? container.encode(messageId, forKey: .messageId)
314314
try? container.encode(campaignId as? Int, forKey: .campaignId)
315315
try? container.encode(createdAt, forKey: .createdAt)

0 commit comments

Comments
 (0)