Skip to content

Commit

Permalink
Merge pull request #342 from Iterable/MOB-2882-fix-read-state
Browse files Browse the repository at this point in the history
[MOB-2882] add back in read state check
  • Loading branch information
roninopf authored May 5, 2021
2 parents 2a81b48 + 9d386d5 commit e290206
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private void processMessages() {
List<IterableInAppMessage> messagesByPriorityLevel = getMessagesSortedByPriorityLevel(messages);

for (IterableInAppMessage message : messagesByPriorityLevel) {
if (!message.isProcessed() && !message.isConsumed() && message.getTriggerType() == TriggerType.IMMEDIATE) {
if (!message.isProcessed() && !message.isConsumed() && message.getTriggerType() == TriggerType.IMMEDIATE && !message.isRead()) {
IterableLogger.d(TAG, "Calling onNewInApp on " + message.getMessageId());
InAppResponse response = handler.onNewInApp(message);
IterableLogger.d(TAG, "Response: " + response);
Expand Down

0 comments on commit e290206

Please sign in to comment.