diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-02 19:56:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-02 19:56:09 +0300 |
commit | 756cbebea5281171c32d62a599cedd9657db7999 (patch) | |
tree | 8b47ef81742f6a31dc8c8f34b071fad59940c64c /protocols | |
parent | 0f77b6f84b7fb4eca715ef3191a13ed0291f37c0 (diff) |
fixes #4094 (Discord: самое свежее сообщение не подгружается при приходе канала с сервера)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index a8f76bbfbe..32bdd67cc8 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -73,7 +73,7 @@ void CDiscordProto::CreateChat(CDiscordGuild *pGuild, CDiscordUser *pUser) SnowFlake oldMsgId = getId(pUser->hContact, DB_KEY_LASTMSGID);
if (oldMsgId == 0)
- RetrieveHistory(pUser, MSG_BEFORE, pUser->lastMsgId, 20);
+ RetrieveHistory(pUser, MSG_BEFORE, pUser->lastMsgId + 1, 20);
else if (!pUser->bSynced && pUser->lastMsgId > oldMsgId) {
pUser->bSynced = true;
RetrieveHistory(pUser, MSG_AFTER, oldMsgId, 99);
|