Skip to content

Commit

Permalink
Remove return if lifecycleCallback.hasSubscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
jennantilla committed Aug 9, 2023
1 parent 995598e commit 9a90f46
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,11 @@ internal class InAppMessagesManager(

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

_state.inAppMessageIdShowing = null

Expand Down

0 comments on commit 9a90f46

Please sign in to comment.