Scroll to bottom when sending a poll.

This commit is contained in:
John Preston 2020-11-19 17:01:50 +03:00
parent a086afb152
commit b1ed15447b
1 changed files with 5 additions and 0 deletions

View File

@ -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 {