summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/groupchats.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-25 23:09:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-25 23:09:37 +0300
commitf6076b88348538fb45d38636bc7e1b8925278a03 (patch)
treeaab90815f1029de589471daf1234aed11589c155 /protocols/Facebook/src/groupchats.cpp
parent836418cebf387ccf94816a0902263734098b4931 (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.cpp6
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;