From 0a2c7536207d5fa9b12fe88d809bde337c1a8e5a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 26 Jan 2021 09:35:03 +0100 Subject: [PATCH] do not use offline fallback rtp capability if account is disabled --- .../java/eu/siacs/conversations/xmpp/jingle/RtpCapability.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpCapability.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpCapability.java index e24e68ebb..8a7581f04 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpCapability.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpCapability.java @@ -62,7 +62,7 @@ public class RtpCapability { public static Capability check(final Contact contact, final boolean allowFallback) { final Presences presences = contact.getPresences(); - if (presences.size() == 0 && allowFallback) { + if (presences.size() == 0 && allowFallback && contact.getAccount().isEnabled()) { return contact.getRtpCapability(); } Capability result = Capability.NONE;