2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Just compute scheduled ids instead of a lookup.

This commit is contained in:
John Preston
2022-03-11 11:25:30 +04:00
parent 1833fac094
commit 5be72e8ce2
4 changed files with 35 additions and 28 deletions

View File

@@ -1760,10 +1760,6 @@ MsgId History::nextNonHistoryEntryId() {
return owner().nextNonHistoryEntryId();
}
MsgId History::scheduledMessageId(MsgId remoteScheduledMsgId) const {
return ServerMaxMsgId + remoteScheduledMsgId + 1;
}
bool History::folderKnown() const {
return _folder.has_value();
}