summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-14 15:20:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-14 15:20:12 +0300
commit045d56c1e28bef568aaf619346cdd3417469e786 (patch)
tree36f7c41b2947fc8e7cd2d7ddf8a42decf8f77205 /protocols/Discord/src/server.cpp
parenteb5e8631d087f8fa6b100caf37331503b9ac4ed4 (diff)
Discord: we don't need that crutch anymore
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r--protocols/Discord/src/server.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp
index c5655381ac..0c8f31bf5b 100644
--- a/protocols/Discord/src/server.cpp
+++ b/protocols/Discord/src/server.cpp
@@ -110,10 +110,8 @@ void CDiscordProto::OnReceiveHistory(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest
char szMsgId[100];
_i64toa_s(msgid, szMsgId, _countof(szMsgId), 10);
MEVENT hDbEvent = db_event_getById(m_szModuleName, szMsgId);
- if (hDbEvent != 0) {
- if (!pUser->bSkipHistory)
- bSucceeded = 0 == db_event_edit(pUser->hContact, hDbEvent, &dbei);
- }
+ if (hDbEvent != 0)
+ bSucceeded = 0 == db_event_edit(pUser->hContact, hDbEvent, &dbei);
if (!bSucceeded) {
MEVENT hNew = db_event_add(pUser->hContact, &dbei);