Fix pinned message reset on message being sent.

Fixes #10304
This commit is contained in:
John Preston 2021-02-04 19:12:31 +04:00
parent 7cd626c9fd
commit a2187a1d2b
1 changed files with 2 additions and 0 deletions

View File

@ -1632,6 +1632,8 @@ void HistoryWidget::fastShowAtEnd(not_null<History*> history) {
clearAllLoadRequests();
setMsgId(ShowAtUnreadMsgId);
_pinnedClickedId = FullMsgId();
_minPinnedId = std::nullopt;
if (_history->isReadyFor(_showAtMsgId)) {
historyLoaded();
} else {