diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-03-21 16:43:03 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-03-21 16:43:03 +0100 |
commit | c47d1e83c1a5ee11f6924dd4e8ac95f123802824 (patch) | |
tree | 34fe64fe6831274c5655b05a459c788f2710cb73 /src/main/java/eu/siacs/conversations/parser/MessageParser.java | |
parent | 99b2ef7e9d571dcfa386df4d0190ce626e657232 (diff) |
properly set chat states when receiving otr status messages
Diffstat (limited to 'src/main/java/eu/siacs/conversations/parser/MessageParser.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/parser/MessageParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/parser/MessageParser.java b/src/main/java/eu/siacs/conversations/parser/MessageParser.java index 72ece046..8ae9b642 100644 --- a/src/main/java/eu/siacs/conversations/parser/MessageParser.java +++ b/src/main/java/eu/siacs/conversations/parser/MessageParser.java @@ -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) { |