diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-05 18:41:38 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-12-06 10:57:43 +0100 |
commit | de83fbe4f65d02fa764cfb3d07d4cd5ef39ecd06 (patch) | |
tree | b2111726f1b90cf216c1f7bb6f1c2362761e9aca /src/main/java/eu/siacs/conversations/parser/MessageParser.java | |
parent | ef9cca53993ceb5c820e2a50b8069c796c301293 (diff) |
check for query object as condition to trigger deduplication instead of serverId
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/parser/MessageParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/parser/MessageParser.java b/src/main/java/eu/siacs/conversations/parser/MessageParser.java index 137cd4561..6baefac54 100644 --- a/src/main/java/eu/siacs/conversations/parser/MessageParser.java +++ b/src/main/java/eu/siacs/conversations/parser/MessageParser.java @@ -388,7 +388,7 @@ public class MessageParser extends AbstractParser implements } } updateLastseen(packet,account,true); - boolean checkForDuplicates = serverMsgId != null + boolean checkForDuplicates = query != null || (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay")) || message.getType() == Message.TYPE_PRIVATE; if (checkForDuplicates && conversation.hasDuplicateMessage(message)) { |