Skip to content

Commit

Permalink
Allow redisplay if either an expected trigger has changed or a trigge…
Browse files Browse the repository at this point in the history
…r is added when there is only dynamic trigger
  • Loading branch information
jinliu9508 committed Jul 19, 2024
1 parent 7582adf commit 66df887
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,10 @@ internal class InAppMessagesManager(
for (message in messages) {
if (!message.isTriggerChanged &&
redisplayedInAppMessages.contains(message) &&
(_triggerController.isTriggerOnMessage(message, newTriggersKeys) || isNewTriggerAdded)
(
_triggerController.isTriggerOnMessage(message, newTriggersKeys) ||
isNewTriggerAdded && _triggerController.messageHasOnlyDynamicTriggers(message)
)
) {
Logging.debug("InAppMessagesManager.makeRedisplayMessagesAvailableWithTriggers: Trigger changed for message: $message")
message.isTriggerChanged = true
Expand Down

0 comments on commit 66df887

Please sign in to comment.