2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-03 13:07:48 +00:00

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

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) {