muc message corrections only compare bare jid true counterpart
during live messages we only store the bare real jid; on muc catch up we might get the full jid for that reason we only compare bare jids
This commit is contained in:
parent
1f77d6b8cd
commit
6e93f698a1
1 changed files with 2 additions and 1 deletions
|
@ -651,7 +651,8 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
final boolean fingerprintsMatch = replacedMessage.getFingerprint() == null
|
||||
|| replacedMessage.getFingerprint().equals(message.getFingerprint());
|
||||
final boolean trueCountersMatch = replacedMessage.getTrueCounterpart() != null
|
||||
&& replacedMessage.getTrueCounterpart().equals(message.getTrueCounterpart());
|
||||
&& message.getTrueCounterpart() != null
|
||||
&& replacedMessage.getTrueCounterpart().asBareJid().equals(message.getTrueCounterpart().asBareJid());
|
||||
final boolean mucUserMatches = query == null && replacedMessage.sameMucUser(message); //can not be checked when using mam
|
||||
final boolean duplicate = conversation.hasDuplicateMessage(message);
|
||||
if (fingerprintsMatch && (trueCountersMatch || !conversationMultiMode || mucUserMatches) && !duplicate) {
|
||||
|
|
Reference in a new issue