don't update presence for muc messages
This commit is contained in:
parent
0d6475d0d9
commit
442ae12ee5
|
@ -1,11 +1,8 @@
|
||||||
package eu.siacs.conversations.parser;
|
package eu.siacs.conversations.parser;
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import net.java.otr4j.session.Session;
|
import net.java.otr4j.session.Session;
|
||||||
import net.java.otr4j.session.SessionStatus;
|
import net.java.otr4j.session.SessionStatus;
|
||||||
|
|
||||||
import eu.siacs.conversations.Config;
|
|
||||||
import eu.siacs.conversations.entities.Account;
|
import eu.siacs.conversations.entities.Account;
|
||||||
import eu.siacs.conversations.entities.Contact;
|
import eu.siacs.conversations.entities.Contact;
|
||||||
import eu.siacs.conversations.entities.Conversation;
|
import eu.siacs.conversations.entities.Conversation;
|
||||||
|
@ -66,7 +63,7 @@ public class MessageParser extends AbstractParser implements
|
||||||
final Jid trueCounterpart = conversation.getMucOptions()
|
final Jid trueCounterpart = conversation.getMucOptions()
|
||||||
.getTrueCounterpart(jid.getResourcepart());
|
.getTrueCounterpart(jid.getResourcepart());
|
||||||
if (trueCounterpart != null) {
|
if (trueCounterpart != null) {
|
||||||
updateLastseen(packet, account, trueCounterpart, true);
|
updateLastseen(packet, account, trueCounterpart, false);
|
||||||
}
|
}
|
||||||
finishedMessage.setType(Message.TYPE_PRIVATE);
|
finishedMessage.setType(Message.TYPE_PRIVATE);
|
||||||
finishedMessage.setTrueCounterpart(trueCounterpart);
|
finishedMessage.setTrueCounterpart(trueCounterpart);
|
||||||
|
@ -169,7 +166,7 @@ public class MessageParser extends AbstractParser implements
|
||||||
.findOrCreateConversation(account, from.toBareJid(), true);
|
.findOrCreateConversation(account, from.toBareJid(), true);
|
||||||
final Jid trueCounterpart = conversation.getMucOptions().getTrueCounterpart(from.getResourcepart());
|
final Jid trueCounterpart = conversation.getMucOptions().getTrueCounterpart(from.getResourcepart());
|
||||||
if (trueCounterpart != null) {
|
if (trueCounterpart != null) {
|
||||||
updateLastseen(packet, account, trueCounterpart.toBareJid(), true);
|
updateLastseen(packet, account, trueCounterpart, false);
|
||||||
}
|
}
|
||||||
if (packet.hasChild("subject")) {
|
if (packet.hasChild("subject")) {
|
||||||
conversation.setHasMessagesLeftOnServer(true);
|
conversation.setHasMessagesLeftOnServer(true);
|
||||||
|
|
Loading…
Reference in a new issue