properly set chat states when receiving otr status messages
This commit is contained in:
parent
99b2ef7e9d
commit
c47d1e83c1
|
@ -94,6 +94,7 @@ public class MessageParser extends AbstractParser implements
|
||||||
} else {
|
} else {
|
||||||
presence = from.getResourcepart();
|
presence = from.getResourcepart();
|
||||||
}
|
}
|
||||||
|
extractChatState(conversation, packet);
|
||||||
updateLastseen(packet, account, true);
|
updateLastseen(packet, account, true);
|
||||||
String body = packet.getBody();
|
String body = packet.getBody();
|
||||||
if (body.matches("^\\?OTRv\\d{1,2}\\?.*")) {
|
if (body.matches("^\\?OTRv\\d{1,2}\\?.*")) {
|
||||||
|
@ -145,7 +146,6 @@ public class MessageParser extends AbstractParser implements
|
||||||
finishedMessage.setRemoteMsgId(packet.getId());
|
finishedMessage.setRemoteMsgId(packet.getId());
|
||||||
finishedMessage.markable = isMarkable(packet);
|
finishedMessage.markable = isMarkable(packet);
|
||||||
finishedMessage.setCounterpart(from);
|
finishedMessage.setCounterpart(from);
|
||||||
extractChatState(conversation, packet);
|
|
||||||
conversation.setLastReceivedOtrMessageId(null);
|
conversation.setLastReceivedOtrMessageId(null);
|
||||||
return finishedMessage;
|
return finishedMessage;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue