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 --- src/core/stdmsg/src/cmdlist.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/cmdlist.cpp b/src/core/stdmsg/src/cmdlist.cpp index 35fbcac30a..dc399a27e2 100644 --- a/src/core/stdmsg/src/cmdlist.cpp +++ b/src/core/stdmsg/src/cmdlist.cpp @@ -95,15 +95,14 @@ void msgQueue_processack(MCONTACT hContact, int id, BOOL success, LPARAM lParam) dbei.timestamp = time(0); dbei.cbBlob = (DWORD)(mir_strlen(p->szMsg) + 1); dbei.pBlob = (PBYTE)p->szMsg; + dbei.szId = (char *)lParam; MessageWindowEvent evt = { id, hContact, &dbei }; NotifyEventHooks(g_chatApi.hevPreCreate, 0, (LPARAM)&evt); p->szMsg = (char*)dbei.pBlob; - MEVENT hNewEvent = db_event_add(hContact, &dbei); - if (hNewEvent && lParam) - db_event_setId(dbei.szModule, hNewEvent, (char*)lParam); + db_event_add(hContact, &dbei); mir_free(p->szMsg); mir_free(p); -- cgit v1.2.3