mirror of https://github.com/procxx/kepka.git
Update hash counting for scheduled messages.
This commit is contained in:
parent
694f771131
commit
0b08810d5a
|
@ -281,10 +281,11 @@ int32 ScheduledMessages::countListHash(const List &list) const {
|
||||||
const auto j = list.idByItem.find(item.get());
|
const auto j = list.idByItem.find(item.get());
|
||||||
HashUpdate(hash, j->second);
|
HashUpdate(hash, j->second);
|
||||||
if (const auto edited = item->Get<HistoryMessageEdited>()) {
|
if (const auto edited = item->Get<HistoryMessageEdited>()) {
|
||||||
HashUpdate(hash, std::max(item->date(), edited->date));
|
HashUpdate(hash, edited->date);
|
||||||
} else {
|
} else {
|
||||||
HashUpdate(hash, item->date());
|
HashUpdate(hash, int32(0));
|
||||||
}
|
}
|
||||||
|
HashUpdate(hash, item->date());
|
||||||
}
|
}
|
||||||
return HashFinalize(hash);
|
return HashFinalize(hash);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue