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 Aug 10, 2023
2 parents 67c2c52 + 8ab25ce commit ed80fcc
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 ed80fcc

Please sign in to comment.