diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-15 18:35:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-15 18:35:28 +0300 |
commit | 436e303e24e5046d6cc52ac3da51a0b51adbef36 (patch) | |
tree | 4f7d3b27ad24e710dae845558e2d719b54d1d88a /plugins/Scriver | |
parent | f0d86d413859d402331b49b98db7d61fef801489 (diff) |
simpler way of applying server ids to messages
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index ac1d9be163..6c017b7266 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -149,14 +149,13 @@ static int ackevent(WPARAM, LPARAM lParam) dbei.timestamp = time(0);
dbei.cbBlob = (int)mir_strlen(item->sendBuffer) + 1;
dbei.pBlob = (PBYTE)item->sendBuffer;
+ dbei.szId = (char *)pAck->lParam;
MessageWindowEvent evt = { item->hSendId, hContact, &dbei };
NotifyEventHooks(g_chatApi.hevPreCreate, 0, (LPARAM)&evt);
item->sendBuffer = (char *)dbei.pBlob;
- MEVENT hNewEvent = db_event_add(hContact, &dbei);
- if (hNewEvent && pAck->lParam)
- db_event_setId(dbei.szModule, hNewEvent, (char *)pAck->lParam);
+ db_event_add(hContact, &dbei);
if (item->hwndErrorDlg != nullptr)
DestroyWindow(item->hwndErrorDlg);
|