mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
deduplicate private muc messages
This commit is contained in:
parent
6059ed4738
commit
402e5363d1
@ -307,7 +307,9 @@ public class MessageParser extends AbstractParser implements
|
||||
}
|
||||
}
|
||||
updateLastseen(packet,account,true);
|
||||
boolean checkForDuplicates = serverMsgId != null || (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay"));
|
||||
boolean checkForDuplicates = serverMsgId != null
|
||||
|| (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay"))
|
||||
|| message.getType() == Message.TYPE_PRIVATE;
|
||||
if (checkForDuplicates && conversation.hasDuplicateMessage(message)) {
|
||||
Log.d(Config.LOGTAG,"skipping duplicate message from "+message.getCounterpart().toString()+" "+message.getBody());
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user