From 436e303e24e5046d6cc52ac3da51a0b51adbef36 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jun 2020 18:35:21 +0300 Subject: simpler way of applying server ids to messages --- protocols/ICQ-WIM/src/server.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'protocols/ICQ-WIM/src') diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 465cb052be..0794624c4a 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -75,11 +75,6 @@ MCONTACT CIcqProto::CheckOwnMessage(const CMStringA &reqId, const CMStringA &msg MCONTACT ret = pOwn->m_hContact; if (bRemove) { - // here we filter service messages for SecureIM, OTR etc, i.e. messages that - // weren't initialized by SRMM (we identify it by missing server id) - if (db_event_getById(m_szModuleName, msgId) == 0) - db_event_setId(m_szModuleName, 1, msgId); - mir_cslock lck(m_csOwnIds); m_arOwnIds.remove(pOwn); } @@ -453,8 +448,6 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo pReq << CHAR_PARAM("aimsid", m_aimsid) << CHAR_PARAM("previews", "600"); Push(pReq); - db_event_setId(m_szModuleName, 1, szMsgId); - MarkAsRead(hContact); return; } -- cgit v1.2.3