MessageParser: ignore groupchat messages retrieved from user archive
This commit is contained in:
parent
c445b63eba
commit
06ed2863bd
1 changed files with 4 additions and 0 deletions
|
@ -398,6 +398,10 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
}
|
||||
|
||||
boolean isTypeGroupChat = packet.getType() == MessagePacket.TYPE_GROUPCHAT;
|
||||
if (query != null && !query.muc() && isTypeGroupChat) {
|
||||
Log.e(Config.LOGTAG, account.getJid().toBareJid() + ": received groupchat (" + from + ") message on regular MAM request. skipping");
|
||||
return;
|
||||
}
|
||||
boolean isProperlyAddressed = (to != null) && (!to.isBareJid() || account.countPresences() == 0);
|
||||
boolean isMucStatusMessage = from.isBareJid() && mucUserElement != null && mucUserElement.hasChild("status");
|
||||
if (packet.fromAccount(account)) {
|
||||
|
|
Reference in a new issue