From 511335179f0ac1e78d989cf06a83ebc94c0e136e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 8 Sep 2018 12:45:05 +0200 Subject: [PATCH] do not parse caps and pgp keys from muc presences --- .../java/eu/siacs/conversations/parser/PresenceParser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/parser/PresenceParser.java b/src/main/java/eu/siacs/conversations/parser/PresenceParser.java index bd09e5d73..2e956b4a2 100644 --- a/src/main/java/eu/siacs/conversations/parser/PresenceParser.java +++ b/src/main/java/eu/siacs/conversations/parser/PresenceParser.java @@ -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");