properly set chat states when receiving otr status messages

This commit is contained in:
iNPUTmice 2015-03-21 16:43:03 +01:00
parent 99b2ef7e9d
commit c47d1e83c1

View File

@ -94,6 +94,7 @@ public class MessageParser extends AbstractParser implements
} else {
presence = from.getResourcepart();
}
extractChatState(conversation, packet);
updateLastseen(packet, account, true);
String body = packet.getBody();
if (body.matches("^\\?OTRv\\d{1,2}\\?.*")) {
@ -145,7 +146,6 @@ public class MessageParser extends AbstractParser implements
finishedMessage.setRemoteMsgId(packet.getId());
finishedMessage.markable = isMarkable(packet);
finishedMessage.setCounterpart(from);
extractChatState(conversation, packet);
conversation.setLastReceivedOtrMessageId(null);
return finishedMessage;
} catch (Exception e) {