From b1ed15447b4e8618c4a241186d4e9c5234460485 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 19 Nov 2020 17:01:50 +0300 Subject: [PATCH] Scroll to bottom when sending a poll. --- Telegram/SourceFiles/apiwrap.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index fb1a263e40..29a91fb31a 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -5273,6 +5273,11 @@ void ApiWrap::createPoll( MTP_int(action.options.scheduled) )).done([=](const MTPUpdates &result) mutable { applyUpdates(result); + _session->changes().historyUpdated( + history, + (action.options.scheduled + ? Data::HistoryUpdate::Flag::ScheduledSent + : Data::HistoryUpdate::Flag::MessageSent)); done(); finish(); }).fail([=](const RPCError &error) mutable {