Skip to content

Commit

Permalink
Merge pull request #1447 from OneSignal/fix/crash_when_failing_to_loa…
Browse files Browse the repository at this point in the history
…d_IAM

Cleanup IAM window on the main thread when failing to load
  • Loading branch information
emawby authored Jun 3, 2024
2 parents 504f41f + 1ae11e6 commit 25f0657
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,9 @@ - (void)messageViewDidDisplayPage:(OSInAppMessageInternal *)message withPageId:(

- (void)messageIsNotActive:(OSInAppMessageInternal *)message {
[self deleteInactiveMessage:message];
[self cleanUpInAppWindow];
dispatch_async(dispatch_get_main_queue(), ^{
[self cleanUpInAppWindow];
});
}

- (void)messageWillDisplay:(nonnull OSInAppMessageInternal *)message {
Expand Down

0 comments on commit 25f0657

Please sign in to comment.