diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-14 15:20:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-14 15:20:12 +0300 |
commit | 045d56c1e28bef568aaf619346cdd3417469e786 (patch) | |
tree | 36f7c41b2947fc8e7cd2d7ddf8a42decf8f77205 /protocols/Discord/src/server.cpp | |
parent | eb5e8631d087f8fa6b100caf37331503b9ac4ed4 (diff) |
Discord: we don't need that crutch anymore
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r-- | protocols/Discord/src/server.cpp | 6 |
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); |