From 98abb3aa005c3c6e81c4e10339c04b9f9f0ae538 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 18 Mar 2024 10:53:29 +0400 Subject: [PATCH] Fix possible crash in join channel toast. --- Telegram/SourceFiles/apiwrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index 972f1fe15e..a71ad72ce6 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -1746,7 +1746,7 @@ void ApiWrap::joinChannel(not_null channel) { } return QString(); }(); - if (!text.isEmpty()) { + if (show && !text.isEmpty()) { show->showToast(text, kJoinErrorDuration); } }