From 045d56c1e28bef568aaf619346cdd3417469e786 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Mar 2019 15:20:12 +0300 Subject: Discord: we don't need that crutch anymore --- protocols/Discord/src/server.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/Discord/src/server.cpp') 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); -- cgit v1.2.3