From 6dabca6cb269381fbe49ed7bd80fa275f4c784c0 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Tue, 29 Dec 2020 06:06:30 +0300 Subject: [PATCH] Allow hiding pinned messages in chats with users --- Telegram/SourceFiles/window/window_peer_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 4cc5b9553..5178a4b5c 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -472,7 +472,7 @@ void Filler::addUserActions(not_null user) { user->session().supportHelper().editInfo(controller, user); }); } - if (user->isSelf() && user->hasPinnedMessages()) { + if (user->hasPinnedMessages()) { auto hasHidden = HistoryWidget::hasHiddenPinnedMessage(user); if (hasHidden) { _addAction(