diff --git a/Telegram/SourceFiles/app.cpp b/Telegram/SourceFiles/app.cpp index 1c8144695..21420aba9 100644 --- a/Telegram/SourceFiles/app.cpp +++ b/Telegram/SourceFiles/app.cpp @@ -2319,6 +2319,11 @@ namespace { ClickHandler::clearActive(); ClickHandler::unpressed(); + if (AuthSession::Exists()) { + // Clear notifications to prevent any showNotification() calls while destroying items. + AuthSession::Current().notifications()->clearAllFast(); + } + histories().clear(); clearStorageImages();