diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-25 23:09:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-25 23:09:37 +0300 |
commit | f6076b88348538fb45d38636bc7e1b8925278a03 (patch) | |
tree | aab90815f1029de589471daf1234aed11589c155 /protocols/Facebook/src/groupchats.cpp | |
parent | 836418cebf387ccf94816a0902263734098b4931 (diff) |
Facebook:
- fix for sending own messages to group chats;
- code optimization
Diffstat (limited to 'protocols/Facebook/src/groupchats.cpp')
-rw-r--r-- | protocols/Facebook/src/groupchats.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Facebook/src/groupchats.cpp b/protocols/Facebook/src/groupchats.cpp index 92ff8c2e55..2596aaf2cf 100644 --- a/protocols/Facebook/src/groupchats.cpp +++ b/protocols/Facebook/src/groupchats.cpp @@ -169,7 +169,11 @@ int FacebookProto::GroupchatEventHook(WPARAM, LPARAM lParam) if (m_bOnline) { wchar_t *wszText = NEWWSTR_ALLOCA(gch->ptszText); Chat_UnescapeTags(wszText); - SendMsg(si->hContact, 0, T2Utf(wszText)); + + int mid = SendMsg(si->hContact, 0, T2Utf(wszText)); + for (auto &msg : arOwnMessages) + if (msg->reqId == mid) + msg->wszText = wszText; } break; |