From 7669b8e12b6d139028f65296a3a0c3d3577267af Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 1 May 2019 13:41:56 +0400 Subject: [PATCH] Don't suggest to archive proxy sponsor. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 55ab7d810..420c9a16e 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -200,12 +200,14 @@ bool Filler::showInfo() { bool Filler::showToggleArchived() { if (_source != PeerMenuSource::ChatsList) { return false; + } + const auto history = _peer->owner().historyLoaded(_peer); + if (history && history->useProxyPromotion()) { + return false; } else if (!_peer->isNotificationsUser()) { return true; - } else if (const auto history = _peer->owner().historyLoaded(_peer)) { - return (history->folder() != nullptr); } - return false; + return history && (history->folder() != nullptr); } void Filler::addPinToggle() {