2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix localtime-related slowmode errors.

This commit is contained in:
John Preston
2019-08-20 12:42:13 +03:00
parent 1a06714f3a
commit e1fe373504
9 changed files with 35 additions and 25 deletions

View File

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