From a086afb152ff3c702751998f3d5f22e8ba301fa0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 19 Nov 2020 16:47:12 +0300 Subject: [PATCH] Fix legacy group service message in chats list. --- Telegram/SourceFiles/history/history_service.cpp | 5 +++-- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/history/history_service.cpp b/Telegram/SourceFiles/history/history_service.cpp index bda13ceac..69460be8d 100644 --- a/Telegram/SourceFiles/history/history_service.cpp +++ b/Telegram/SourceFiles/history/history_service.cpp @@ -818,8 +818,9 @@ void HistoryService::updateDependentText() { setServiceText(text); history()->owner().requestItemResize(this); - if (history()->textCachedFor == this) { - history()->textCachedFor = nullptr; + const auto inDialogsHistory = history()->migrateToOrMe(); + if (inDialogsHistory->textCachedFor == this) { + inDialogsHistory->textCachedFor = nullptr; } //if (const auto feed = history()->peer->feed()) { // #TODO archive // if (feed->textCachedFor == this) { diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index a85bdbab0..45d4b7736 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -579,8 +579,6 @@ void MainWindow::psTrayMenuUpdated() { #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION void MainWindow::setSNITrayIcon(int counter, bool muted) { - const auto iconName = GetTrayIconName(counter, muted); - if (IsIndicatorApplication()) { if (!IsIconRegenerationNeeded(counter, muted) && _trayIconFile