diff options
author | fiaxh <git@mx.ax.lt> | 2018-03-07 21:17:15 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-03-10 20:01:22 +0100 |
commit | c6ff25cc7a410416ab3f83565205d4841c97e4cb (patch) | |
tree | c41fead90fd075249ed5dd7181bb6b6f8cf94e9c /libdino/src/service/message_processor.vala | |
parent | c8f68678be021d52a1fbc4efeba890b203123ef1 (diff) | |
download | dino-c6ff25cc7a410416ab3f83565205d4841c97e4cb.tar.gz dino-c6ff25cc7a410416ab3f83565205d4841c97e4cb.zip |
Only assume UUID to be unique for one counterpart+account when deduplicating
Diffstat (limited to 'libdino/src/service/message_processor.vala')
-rw-r--r-- | libdino/src/service/message_processor.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala index 14db0132..d0e3e79a 100644 --- a/libdino/src/service/message_processor.vala +++ b/libdino/src/service/message_processor.vala @@ -171,7 +171,7 @@ public class MessageProcessor : StreamInteractionModule, Object { public override async bool run(Entities.Message message, Xmpp.MessageStanza stanza, Conversation conversation) { bool is_uuid = message.stanza_id != null && Regex.match_simple("""[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}""", message.stanza_id); - bool new_uuid_msg = is_uuid && !db.contains_message_by_stanza_id(message.stanza_id, conversation.account); + bool new_uuid_msg = is_uuid && !db.contains_message_by_stanza_id(message, conversation.account); bool new_misc_msg = !is_uuid && !db.contains_message(message, conversation.account); bool new_msg = new_uuid_msg || new_misc_msg; return !new_msg; |