From bdfb9b41436f96befee5b10dce873e3f125b0dcd Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 17 Feb 2019 15:06:50 +0400 Subject: [PATCH] Ignore actions from other chats in HistoryWidget. This should fix an issue that was noticed in #5701. --- Telegram/SourceFiles/history/history_widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 1160f8912..5a8f6149a 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -510,7 +510,9 @@ HistoryWidget::HistoryWidget( }, _topBar->lifetime()); Auth().api().sendActions( - ) | rpl::start_with_next([this](const ApiWrap::SendOptions &options) { + ) | rpl::filter([=](const ApiWrap::SendOptions &options) { + return (options.history == _history); + }) | rpl::start_with_next([=](const ApiWrap::SendOptions &options) { fastShowAtEnd(options.history); const auto lastKeyboardUsed = lastForceReplyReplied(FullMsgId( options.history->channelId(),