Fix possible crashes in toastParent expiring.

This commit is contained in:
John Preston
2022-12-07 13:03:13 +04:00
parent 6f50906952
commit cfddca8f58
8 changed files with 24 additions and 18 deletions
+3 -1
View File
@@ -110,7 +110,9 @@ void SendBotCallbackData(
const auto showAlert = data.is_alert();
if (!message.isEmpty()) {
if (showAlert) {
if (!show->valid()) {
return;
} else if (showAlert) {
show->showBox(Ui::MakeInformBox(message));
} else {
if (withPassword) {