diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-04 14:37:29 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-04 14:37:29 +0300 |
commit | 5146d89c2d66a206343fd959926a084f53a4a03a (patch) | |
tree | 313d77ed4264a8e69692f812e223bf4f86658b39 | |
parent | 6c12a57491459072c1b079cad1b6ee7963dec0bf (diff) |
Discord: we load text messages only
-rw-r--r-- | protocols/Discord/src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index cb520a7624..54d41ede49 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -85,6 +85,9 @@ void CDiscordProto::OnReceiveHistory(MHttpResponse *pReply, AsyncHttpRequest *pR for (auto &it : arNodes) {
auto &pNode = *it;
+ if (pNode["type"].as_int() != 0)
+ continue;
+
CMStringW wszText = PrepareMessageText(pNode);
CMStringA szUserId = pNode["author"]["id"].as_mstring();
SnowFlake msgid = ::getId(pNode["id"]);
|