diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-26 13:11:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-26 13:11:10 +0300 |
commit | 1662a4421fecfdf03e68637e9a5969085644586e (patch) | |
tree | 49a22672b2440fbbdeae448ba0ffae15e42b6626 /src/mir_app | |
parent | f05405db4308a5c419f15a3c9538e4c11e6c172a (diff) |
for #3964 - reply_id in Telegram, both for messages and files/pictures/etc
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/file.cpp | 1 | ||||
-rw-r--r-- | src/mir_app/src/proto_interface.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mir_app/src/file.cpp b/src/mir_app/src/file.cpp index aaa5477a4b..e26571d4aa 100644 --- a/src/mir_app/src/file.cpp +++ b/src/mir_app/src/file.cpp @@ -249,6 +249,7 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre) dbei.timestamp = pre->timestamp; dbei.szId = pre->szId; dbei.szUserId = pre->szUserId; + dbei.szReplyId = pre->szReplyId; dbei.eventType = EVENTTYPE_FILE; dbei.flags = DBEF_UTF; if (bSent) diff --git a/src/mir_app/src/proto_interface.cpp b/src/mir_app/src/proto_interface.cpp index 0f3b2e12d5..88488be82c 100644 --- a/src/mir_app/src/proto_interface.cpp +++ b/src/mir_app/src/proto_interface.cpp @@ -220,6 +220,7 @@ MEVENT PROTO_INTERFACE::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre) dbei.cbBlob = (uint32_t)mir_strlen(pre->szMessage) + 1;
dbei.pBlob = (uint8_t*)pre->szMessage;
dbei.szUserId = pre->szUserId;
+ dbei.szReplyId = pre->szReplyId;
if (pre->flags & PREF_CREATEREAD)
dbei.flags |= DBEF_READ;
|