mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Update hash counting for scheduled messages.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user