Show slowmode button in chat.

This commit is contained in:
John Preston
2019-07-16 15:59:50 +02:00
parent 055c145af5
commit 01d0479335
6 changed files with 48 additions and 11 deletions
@@ -1636,6 +1636,11 @@ bool Session::checkEntitiesAndViewsUpdate(const MTPDmessage &data) {
existing->updateForwardedInfo(data.vfwd_from());
existing->setViewsCount(data.vviews().value_or(-1));
existing->indexAsNewItem();
if (const auto channel = existing->history()->peer->asChannel()) {
if (existing->out()) {
channel->growSlowmodeLastMessage(data.vdate().v);
}
}
requestItemTextRefresh(existing);
if (existing->mainView()) {
App::checkSavedGif(existing);