added the alert in objc

This commit is contained in:
Mauro Romito
2025-07-24 19:23:09 +02:00
parent a6022e1481
commit 17ad5c1cbb
3 changed files with 141 additions and 74 deletions
@@ -1144,8 +1144,10 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
if (weakSelf)
{
typeof(self) self = weakSelf;
[self presentViewController:isLastOwnerPrompt animated:YES completion:nil];
self->currentAlert = isLastOwnerPrompt;
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController:isLastOwnerPrompt animated:YES completion:nil];
self->currentAlert = isLastOwnerPrompt;
});
}
}
else
@@ -1243,8 +1245,10 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
if (weakSelf)
{
typeof(self) self = weakSelf;
[self presentViewController:leavePrompt animated:YES completion:nil];
self->currentAlert = leavePrompt;
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController:leavePrompt animated:YES completion:nil];
self->currentAlert = leavePrompt;
});
}
}
}];