diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-02 20:21:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-02 20:21:23 +0300 |
commit | 815a7137e297f2030d120a4d78d177544f4c60dc (patch) | |
tree | eba2e27829f7426ea896eb4349f8ebdc5ed34d92 /protocols/Facebook/src | |
parent | 11638eb071d93243a4a64a744c3d47f58e1dc98d (diff) |
Facebook: more fixes for duplicate messages
Diffstat (limited to 'protocols/Facebook/src')
-rw-r--r-- | protocols/Facebook/src/server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index 1bbdb95b8d..f448888f4b 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -705,6 +705,11 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) return; } + if (db_event_getById(m_szModuleName, szId)) { + debugLogA("this message <%s> was already stored, exiting", szId.c_str()); + return; + } + // messages sent with attachments are returning as deltaNewMessage, not deltaSentMessage __int64 actorFbId = _wtoi64(wszActorFbId); if (m_uid == actorFbId) |