diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-21 17:32:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-21 17:32:41 +0300 |
commit | 9f9082d49aaaf924f5d00c634641b3da0d115890 (patch) | |
tree | a659bf5de2115ee5893ad7531e4d85161b7dc708 /plugins/Scriver/src | |
parent | d3aa476a211b9e9d8ac6f97aa2ae6df05609733c (diff) |
if a protocol receives a message delivery confirmation, it can pass the server id for an event as LPCSTR into lParam of ProtoBroadcastAck
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index f529234937..a878f8a2ae 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -156,7 +156,9 @@ static int ackevent(WPARAM, LPARAM lParam) NotifyEventHooks(g_chatApi.hevPreCreate, 0, (LPARAM)&evt);
item->sendBuffer = (char *)dbei.pBlob;
- db_event_add(hContact, &dbei);
+ MEVENT hNewEvent = db_event_add(hContact, &dbei);
+ if (hNewEvent && pAck->lParam)
+ db_event_setId(dbei.szModule, hNewEvent, (char *)pAck->lParam);
if (item->hwndErrorDlg != nullptr)
DestroyWindow(item->hwndErrorDlg);
|