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/TabSRMM | |
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/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/sendqueue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp index b557416512..f45475448f 100644 --- a/plugins/TabSRMM/src/sendqueue.cpp +++ b/plugins/TabSRMM/src/sendqueue.cpp @@ -481,6 +481,8 @@ int SendQueue::ackMessage(CTabBaseDlg *dat, WPARAM wParam, LPARAM lParam) job.szSendBuffer = (char*)dbei.pBlob; MEVENT hNewEvent = db_event_add(job.hContact, &dbei); + if (hNewEvent && ack->lParam) + db_event_setId(dbei.szModule, hNewEvent, (char*)ack->lParam); if (m_pContainer) if (!nen_options.iNoSounds && !(m_pContainer->dwFlags & CNT_NOSOUND)) |