2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

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

View File

@@ -3826,6 +3826,9 @@ void MainWidget::feedUpdates(const MTPUpdates &updates, uint64 randomId) {
TextUtilities::EntitiesFromMTP(list.value_or_empty())
});
item->updateSentMedia(d.vmedia());
if (const auto channel = item->history()->peer->asChannel()) {
channel->growSlowmodeLastMessage(d.vdate().v);
}
if (!wasAlready) {
item->indexAsNewItem();
}