File tree 1 file changed +6
-1
lines changed
iterableapi/src/main/java/com/iterable/iterableapi
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,7 @@ private void syncWithRemoteQueue(List<IterableInAppMessage> remoteQueue) {
318
318
if (!isInAppStored ) {
319
319
storage .addMessage (message );
320
320
onMessageAdded (message );
321
+
321
322
changed = true ;
322
323
}
323
324
@@ -337,11 +338,13 @@ private void syncWithRemoteQueue(List<IterableInAppMessage> remoteQueue) {
337
338
for (IterableInAppMessage localMessage : storage .getMessages ()) {
338
339
if (!remoteQueueMap .containsKey (localMessage .getMessageId ())) {
339
340
storage .removeMessage (localMessage );
341
+
340
342
changed = true ;
341
343
}
342
344
}
343
345
344
346
scheduleProcessing ();
347
+
345
348
if (changed ) {
346
349
notifyOnChange ();
347
350
}
@@ -407,7 +410,9 @@ public void run() {
407
410
}
408
411
409
412
private void onMessageAdded (IterableInAppMessage message ) {
410
- api .trackInAppDelivery (message );
413
+ if (!message .isRead ()) {
414
+ api .trackInAppDelivery (message );
415
+ }
411
416
}
412
417
413
418
private boolean isShowingInApp () {
You can’t perform that action at this time.
0 commit comments