summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-29 10:42:25 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-29 10:42:25 +0300
commit0b942877182ed44ad8cb064118d1468e21a89b6b (patch)
tree9f612563ca15182e189c05c32e06fe81cefa3bcf /src
parent70493eb6f107a6b910705fd5666b9557a83471d1 (diff)
fix: reply ids are not written for the outgoing messages
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/cmdlist.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/cmdlist.cpp b/src/core/stdmsg/src/cmdlist.cpp
index ab90a67a1f..c43a699858 100644
--- a/src/core/stdmsg/src/cmdlist.cpp
+++ b/src/core/stdmsg/src/cmdlist.cpp
@@ -89,6 +89,7 @@ void msgQueue_processack(MCONTACT hContact, int id, BOOL success, LPARAM lParam)
return;
}
+ char buf[100];
DBEVENTINFO dbei = {};
dbei.eventType = EVENTTYPE_MESSAGE;
dbei.flags = DBEF_SENT | DBEF_UTF | (p->flags & DBEF_RTL ? DBEF_RTL : 0);
@@ -97,6 +98,10 @@ void msgQueue_processack(MCONTACT hContact, int id, BOOL success, LPARAM lParam)
dbei.cbBlob = (uint32_t)(mir_strlen(p->szMsg) + 1);
dbei.pBlob = p->szMsg;
dbei.szId = (char *)lParam;
+ if (p->hEvent) {
+ itoa(p->hEvent, buf, 10);
+ dbei.szReplyId = buf;
+ }
MessageWindowEvent evt = { id, hContact, &dbei };
NotifyEventHooks(g_chatApi.hevPreCreate, 0, (LPARAM)&evt);