From e808179197e8875f3faa85ad8f0d1e75d756716f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 1 Oct 2018 15:36:26 +0300 Subject: centralized system of processing message ids. also fixes #1375 --- protocols/JabberG/src/jabber_omemo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols/JabberG/src/jabber_omemo.cpp') diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index f52b0340fc..186cd5c2e9 100755 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -1875,11 +1875,9 @@ bool CJabberProto::OmemoHandleMessage(HXML node, wchar_t *jid, time_t msgTime) if (m_bFixIncorrectTimestamps && (msgTime > now || (msgTime < (time_t)JabberGetLastContactMessageTime(hContact)))) msgTime = now; - pResourceStatus pFromResource(ResourceInfoFromJID(jid)); - PROTORECVEVENT recv = { 0 }; + PROTORECVEVENT recv = {}; recv.timestamp = (DWORD)msgTime; recv.szMessage = mir_strdup(out); - recv.lParam = (LPARAM)((pFromResource != nullptr && m_bEnableRemoteControl) ? pFromResource->m_tszResourceName : 0); ProtoChainRecvMsg(hContact, &recv); mir_free(out); return true; -- cgit v1.2.3