do not parse caps and pgp keys from muc presences
This commit is contained in:
parent
be4c6bc2ca
commit
511335179f
|
@ -240,7 +240,7 @@ public class PresenceParser extends AbstractParser implements
|
|||
return codes;
|
||||
}
|
||||
|
||||
public void parseContactPresence(final PresencePacket packet, final Account account) {
|
||||
private void parseContactPresence(final PresencePacket packet, final Account account) {
|
||||
final PresenceGenerator mPresenceGenerator = mXmppConnectionService.getPresenceGenerator();
|
||||
final Jid from = packet.getFrom();
|
||||
if (from == null || from.equals(account.getJid())) {
|
||||
|
@ -273,6 +273,11 @@ public class PresenceParser extends AbstractParser implements
|
|||
mXmppConnectionService.fetchAvatar(account, avatar);
|
||||
}
|
||||
}
|
||||
|
||||
if (mXmppConnectionService.isMuc(account, from)) {
|
||||
return;
|
||||
}
|
||||
|
||||
int sizeBefore = contact.getPresences().size();
|
||||
|
||||
final String show = packet.findChildContent("show");
|
||||
|
|
Loading…
Reference in a new issue