From 0b942877182ed44ad8cb064118d1468e21a89b6b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Mar 2024 10:42:25 +0300 Subject: fix: reply ids are not written for the outgoing messages --- plugins/TabSRMM/src/sendqueue.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp index fe4d158e73..8bb84faa2c 100644 --- a/plugins/TabSRMM/src/sendqueue.cpp +++ b/plugins/TabSRMM/src/sendqueue.cpp @@ -457,6 +457,7 @@ int SendQueue::ackMessage(CMsgDialog *dat, WPARAM wParam, LPARAM lParam) return 0; } + char buf[100]; DBEVENTINFO dbei = {}; dbei.eventType = EVENTTYPE_MESSAGE; dbei.flags = DBEF_SENT | DBEF_UTF; @@ -475,6 +476,10 @@ int SendQueue::ackMessage(CMsgDialog *dat, WPARAM wParam, LPARAM lParam) dbei.flags |= DBEF_RTL; dbei.pBlob = job.szSendBuffer; dbei.szId = (char *)ack->lParam; + if (job.hEvent) { + itoa(job.hEvent, buf, 10); + dbei.szReplyId = buf; + } MessageWindowEvent evt = { job.iSendId, job.hContact, &dbei }; NotifyEventHooks(g_chatApi.hevPreCreate, 0, (LPARAM)&evt); -- cgit v1.2.3