diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-01 21:40:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-01 21:40:46 +0300 |
commit | 9d3e0e70bb8286b2d55779751fe773404e29a2e9 (patch) | |
tree | 92a399d956d6940ae868428a00be0dd540b9da5f | |
parent | 3312b19085ef68b63daed0f04aa676e5cdfa3b43 (diff) |
fixes #4090 (Discord: channel history does not displayed in message log)
-rw-r--r-- | protocols/Discord/src/server.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index fa41dde07b..243e80d2b2 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -107,17 +107,14 @@ void CDiscordProto::OnReceiveHistory(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest else
dbei.flags &= ~DBEF_READ;
- MBinBuffer buf;
- ptrA szBody(mir_utf8encodeW(wszText));
- buf.append(szBody, mir_strlen(szBody) + 1);
-
if (!pUser->bIsPrivate) {
- buf.append(szUserId, szUserId.GetLength() + 1);
+ dbei.szUserId = szUserId;
ProcessChatUser(pUser, _atoi64(szUserId), pNode);
}
- dbei.pBlob = (char *)buf.data();
- dbei.cbBlob = (uint32_t)buf.length();
+ ptrA szBody(mir_utf8encodeW(wszText));
+ dbei.pBlob = szBody;
+ dbei.cbBlob = (int)mir_strlen(szBody);
bool bSucceeded = false;
char szMsgId[100];
|