From a2187a1d2bbf285c93c498d2012d161d90b580eb Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Feb 2021 19:12:31 +0400 Subject: [PATCH] Fix pinned message reset on message being sent. Fixes #10304 --- Telegram/SourceFiles/history/history_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 130041ebb2..1da6e2c107 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1632,6 +1632,8 @@ void HistoryWidget::fastShowAtEnd(not_null history) { clearAllLoadRequests(); setMsgId(ShowAtUnreadMsgId); + _pinnedClickedId = FullMsgId(); + _minPinnedId = std::nullopt; if (_history->isReadyFor(_showAtMsgId)) { historyLoaded(); } else {