Skip to content

Commit 2f55511

Browse files
committed
[MOB-10364] Update according to new discussiom
1 parent 2337a3a commit 2f55511

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableInAppMessage.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ static IterableInAppMessage fromJSONObject(@NonNull JSONObject messageJson, @Nul
368368
}
369369

370370
InAppDisplaySettings inAppDisplaySettings = new InAppDisplaySettings(shouldAnimate, new InAppBgColor(bgColorInHex, bgAlpha));
371-
371+
if (html != null) {
372+
message.setLoadedHtmlFromJson(true);
373+
}
372374
content = new Content(html, padding, backgroundAlpha, shouldAnimate, inAppDisplaySettings);
373375
}
374376

@@ -403,9 +405,6 @@ static IterableInAppMessage fromJSONObject(@NonNull JSONObject messageJson, @Nul
403405
jsonOnly);
404406

405407
message.inAppStorageInterface = storageInterface;
406-
if (html != null && !jsonOnly) {
407-
message.setLoadedHtmlFromJson(true);
408-
}
409408
message.processed = messageJson.optBoolean(IterableConstants.ITERABLE_IN_APP_PROCESSED, false);
410409
message.consumed = messageJson.optBoolean(IterableConstants.ITERABLE_IN_APP_CONSUMED, false);
411410
message.read = messageJson.optBoolean(IterableConstants.ITERABLE_IN_APP_READ, false);

0 commit comments

Comments
 (0)