do not use offline fallback rtp capability if account is disabled

(cherry picked from commit 0a2c7536207d5fa9b12fe88d809bde337c1a8e5a)
This commit is contained in:
Daniel Gultsch 2021-01-26 09:35:03 +01:00 committed by Christian Schneppe
parent 6656b945f4
commit 3748e55f53

View file

@ -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;