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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user