mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
check for query object as condition to trigger deduplication instead of serverId
This commit is contained in:
parent
72b781b845
commit
6358f641e7
@ -388,7 +388,7 @@ public class MessageParser extends AbstractParser implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateLastseen(packet,account,true);
|
updateLastseen(packet,account,true);
|
||||||
boolean checkForDuplicates = serverMsgId != null
|
boolean checkForDuplicates = query != null
|
||||||
|| (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay"))
|
|| (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay"))
|
||||||
|| message.getType() == Message.TYPE_PRIVATE;
|
|| message.getType() == Message.TYPE_PRIVATE;
|
||||||
if (checkForDuplicates && conversation.hasDuplicateMessage(message)) {
|
if (checkForDuplicates && conversation.hasDuplicateMessage(message)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user