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

Start shortcut messages sending.

This commit is contained in:
John Preston
2024-02-23 21:23:15 +04:00
parent dd7ccada2f
commit d05c4e0990
38 changed files with 2109 additions and 70 deletions

View File

@@ -96,8 +96,7 @@ constexpr auto kRequestTimeLimit = 60 * crl::time(1000);
} // namespace
bool IsScheduledMsgId(MsgId id) {
return (id > ServerMaxMsgId)
&& (id < ServerMaxMsgId + ScheduledMsgIdsRange);
return (id > ServerMaxMsgId) && (id < ScheduledMaxMsgId);
}
ScheduledMessages::ScheduledMessages(not_null<Session*> owner)