summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Facebook/src/proto.cpp')
-rw-r--r--protocols/Facebook/src/proto.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp
index 993e85a0f6..b161469507 100644
--- a/protocols/Facebook/src/proto.cpp
+++ b/protocols/Facebook/src/proto.cpp
@@ -220,6 +220,7 @@ int FacebookProto::SendMsg(MCONTACT hContact, int, const char *pszSrc)
JSONNode root; root << CHAR_PARAM("body", pszSrc) << INT64_PARAM("msgid", msgId) << INT64_PARAM("sender_fbid", m_uid) << CHAR_PARAM("to", userId);
MqttPublish("/send_message2", root);
+ mir_cslock lck(m_csOwnMessages);
arOwnMessages.insert(new COwnMessage(msgId, m_mid, hContact));
return m_mid;
}