trigger omemo self healing for live msgs on server w/o MAM
This commit is contained in:
parent
7d8514492a
commit
5ac2a42d13
1 changed files with 3 additions and 4 deletions
|
@ -205,7 +205,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
}
|
||||
}
|
||||
|
||||
private Message parseAxolotlChat(Element axolotlMessage, Jid from, Conversation conversation, int status, boolean checkedForDuplicates, boolean postpone) {
|
||||
private Message parseAxolotlChat(Element axolotlMessage, Jid from, Conversation conversation, int status, final boolean checkedForDuplicates, boolean postpone) {
|
||||
final AxolotlService service = conversation.getAccount().getAxolotlService();
|
||||
final XmppAxolotlMessage xmppAxolotlMessage;
|
||||
try {
|
||||
|
@ -229,7 +229,6 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
}
|
||||
} else {
|
||||
Log.d(Config.LOGTAG, "ignoring broken session exception because checkForDuplicates failed");
|
||||
//TODO should be still emit a failed message?
|
||||
return null;
|
||||
}
|
||||
} catch (NotEncryptedForThisDeviceException e) {
|
||||
|
@ -606,8 +605,8 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
fallbacksBySourceId = Collections.emptySet();
|
||||
origin = from;
|
||||
}
|
||||
//TODO either or is probably fine?
|
||||
final boolean checkedForDuplicates = serverMsgId != null && remoteMsgId != null && !conversation.possibleDuplicate(serverMsgId, remoteMsgId);
|
||||
final boolean liveMessage = query == null && !isTypeGroupChat && mucUserElement == null;
|
||||
final boolean checkedForDuplicates = liveMessage || (serverMsgId != null && remoteMsgId != null && !conversation.possibleDuplicate(serverMsgId, remoteMsgId));
|
||||
|
||||
if (origin != null) {
|
||||
message = parseAxolotlChat(axolotlEncrypted, origin, conversation, status, checkedForDuplicates, query != null);
|
||||
|
|
Reference in a new issue