Skip to content

Commit

Permalink
Merge pull request #1799 from OneSignal/fix/iam
Browse files Browse the repository at this point in the history
[5.0.0] Fix IAM display & dismiss bugs
  • Loading branch information
emawby authored and jinliu9508 committed Feb 6, 2024
2 parents 5bc8415 + d4e5d2d commit 2b29b57
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,9 @@ internal class InAppMessagesManager(
}

// fire the external callback
if (!_lifecycleCallback.hasSubscribers) {
Logging.verbose("InAppMessagesManager.messageWasDismissed: inAppMessageLifecycleHandler is null")
return
if (_lifecycleCallback.hasSubscribers) {
_lifecycleCallback.fireOnMain { it.onDidDismiss(InAppMessageLifecycleEvent(message)) }
}
_lifecycleCallback.fireOnMain { it.onDidDismiss(InAppMessageLifecycleEvent(message)) }

_state.inAppMessageIdShowing = null

Expand Down

0 comments on commit 2b29b57

Please sign in to comment.