Update hash counting for scheduled messages.

This commit is contained in:
John Preston 2019-08-12 11:37:18 +01:00
parent 694f771131
commit 0b08810d5a
1 changed files with 3 additions and 2 deletions

View File

@ -281,10 +281,11 @@ int32 ScheduledMessages::countListHash(const List &list) const {
const auto j = list.idByItem.find(item.get());
HashUpdate(hash, j->second);
if (const auto edited = item->Get<HistoryMessageEdited>()) {
HashUpdate(hash, std::max(item->date(), edited->date));
HashUpdate(hash, edited->date);
} else {
HashUpdate(hash, item->date());
HashUpdate(hash, int32(0));
}
HashUpdate(hash, item->date());
}
return HashFinalize(hash);
}