2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -1637,11 +1637,7 @@ 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);
}
}
existing->contributeToSlowmode(data.vdate().v);
requestItemTextRefresh(existing);
if (existing->mainView()) {
checkSavedGif(existing);