check for query object as condition to trigger deduplication instead of serverId

This commit is contained in:
Daniel Gultsch 2015-12-05 18:41:38 +01:00
parent 72b781b845
commit 6358f641e7

View File

@ -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)) {