mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
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 {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user