mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 16:13:56 +02:00
Scroll to bottom when sending a poll.
This commit is contained in:
parent
a086afb152
commit
b1ed15447b
1 changed files with 5 additions and 0 deletions
|
@ -5273,6 +5273,11 @@ void ApiWrap::createPoll(
|
||||||
MTP_int(action.options.scheduled)
|
MTP_int(action.options.scheduled)
|
||||||
)).done([=](const MTPUpdates &result) mutable {
|
)).done([=](const MTPUpdates &result) mutable {
|
||||||
applyUpdates(result);
|
applyUpdates(result);
|
||||||
|
_session->changes().historyUpdated(
|
||||||
|
history,
|
||||||
|
(action.options.scheduled
|
||||||
|
? Data::HistoryUpdate::Flag::ScheduledSent
|
||||||
|
: Data::HistoryUpdate::Flag::MessageSent));
|
||||||
done();
|
done();
|
||||||
finish();
|
finish();
|
||||||
}).fail([=](const RPCError &error) mutable {
|
}).fail([=](const RPCError &error) mutable {
|
||||||
|
|
Loading…
Add table
Reference in a new issue