do not parse caps and pgp keys from muc presences

This commit is contained in:
Daniel Gultsch 2018-09-08 12:45:05 +02:00
parent be4c6bc2ca
commit 511335179f
1 changed files with 6 additions and 1 deletions

View File

@ -240,7 +240,7 @@ public class PresenceParser extends AbstractParser implements
return codes; 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 PresenceGenerator mPresenceGenerator = mXmppConnectionService.getPresenceGenerator();
final Jid from = packet.getFrom(); final Jid from = packet.getFrom();
if (from == null || from.equals(account.getJid())) { if (from == null || from.equals(account.getJid())) {
@ -273,6 +273,11 @@ public class PresenceParser extends AbstractParser implements
mXmppConnectionService.fetchAvatar(account, avatar); mXmppConnectionService.fetchAvatar(account, avatar);
} }
} }
if (mXmppConnectionService.isMuc(account, from)) {
return;
}
int sizeBefore = contact.getPresences().size(); int sizeBefore = contact.getPresences().size();
final String show = packet.findChildContent("show"); final String show = packet.findChildContent("show");