diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 862c6b4b23..0dc544eab1 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -205,6 +205,7 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot) wszText.AppendFormat(L" (%s %s)", TranslateT("edited at"), edited.as_mstring().c_str()); if (pUser->bIsPrivate) { + debugLogA("store a message from private user %lld, channel id %lld", pUser->id, pUser->channelId); ptrA buf(mir_utf8encodeW(wszText)); recv.timestamp = (DWORD)StringToDate(pRoot["timestamp"].as_mstring()); recv.szMessage = buf; @@ -216,6 +217,7 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot) setId(pUser->hContact, DB_KEY_LASTMSGID, messageId); } else { + debugLogA("store a message into the group channel id %lld", channelId); CMStringW wszUserName = pRoot["author"]["id"].as_mstring(); CMStringW wszUserNick = pRoot["author"]["username"].as_mstring() + L"#" + pRoot["author"]["discriminator"].as_mstring(); |