Update hash counting for scheduled messages.

Этот коммит содержится в:
John Preston 2019-08-12 11:37:18 +01:00
родитель 694f771131
Коммит 0b08810d5a
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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);
}