diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-13 21:21:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-13 21:21:15 +0300 |
commit | 7ea25880794e76dc40790826c1198d4048b156eb (patch) | |
tree | 3a5015487a8c82a9393395d02a468945fa34f4ed /protocols/JabberG/src | |
parent | 244d024f27a94f1b88d0079b8d9042c98f546f46 (diff) |
Jabber: fix for correct message direction when reading self messages from MAM
Diffstat (limited to 'protocols/JabberG/src')
-rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index f607d15943..e4124dc65a 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1409,11 +1409,11 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info) msgTime = now;
PROTORECVEVENT recv = {};
- if (bCreateRead) {
+ if (bCreateRead)
recv.flags |= PREF_CREATEREAD;
- if (bWasSent)
- recv.flags |= PREF_SENT;
- }
+ if (bWasSent)
+ recv.flags |= PREF_SENT;
+
recv.timestamp = (DWORD)msgTime;
recv.szMessage = szMessage.GetBuffer();
recv.szMsgId = szMsgId;
|