mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-02 13:42:18 -05:00
deduplicate every message with a stanza-id from the server
This commit is contained in:
parent
6088913fb6
commit
4a7dbaab1e
@ -532,9 +532,9 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean checkForDuplicates = query != null
|
boolean checkForDuplicates = (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay"))
|
||||||
|| (isTypeGroupChat && packet.hasChild("delay","urn:xmpp:delay"))
|
|| message.getType() == Message.TYPE_PRIVATE
|
||||||
|| message.getType() == Message.TYPE_PRIVATE;
|
|| message.getServerMsgId() != null;
|
||||||
if (checkForDuplicates && conversation.hasDuplicateMessage(message)) {
|
if (checkForDuplicates && conversation.hasDuplicateMessage(message)) {
|
||||||
Log.d(Config.LOGTAG,"skipping duplicate message from "+message.getCounterpart().toString()+" "+message.getBody());
|
Log.d(Config.LOGTAG,"skipping duplicate message from "+message.getCounterpart().toString()+" "+message.getBody());
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user