forked from mirror/monocles_chat_clean
extracting chat state for chat with self should not cause markRead event. fixes #3906
(cherry picked from commit ff13cc27661ab4342d903287d152d344c5dc70e3)
This commit is contained in:
parent
b25dd292b9
commit
479864448a
1 changed files with 4 additions and 1 deletions
|
@ -102,10 +102,13 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
ChatState state = ChatState.parse(packet);
|
||||
if (state != null && c != null) {
|
||||
final Account account = c.getAccount();
|
||||
Jid from = packet.getFrom();
|
||||
final Jid from = packet.getFrom();
|
||||
if (from.asBareJid().equals(account.getJid().asBareJid())) {
|
||||
c.setOutgoingChatState(state);
|
||||
if (state == ChatState.ACTIVE || state == ChatState.COMPOSING) {
|
||||
if (c.getContact().isSelf()) {
|
||||
return false;
|
||||
}
|
||||
mXmppConnectionService.markRead(c);
|
||||
activateGracePeriod(account);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue