do not use offline fallback rtp capability if account is disabled
This commit is contained in:
parent
d907d590d9
commit
0a2c753620
|
@ -62,7 +62,7 @@ public class RtpCapability {
|
||||||
|
|
||||||
public static Capability check(final Contact contact, final boolean allowFallback) {
|
public static Capability check(final Contact contact, final boolean allowFallback) {
|
||||||
final Presences presences = contact.getPresences();
|
final Presences presences = contact.getPresences();
|
||||||
if (presences.size() == 0 && allowFallback) {
|
if (presences.size() == 0 && allowFallback && contact.getAccount().isEnabled()) {
|
||||||
return contact.getRtpCapability();
|
return contact.getRtpCapability();
|
||||||
}
|
}
|
||||||
Capability result = Capability.NONE;
|
Capability result = Capability.NONE;
|
||||||
|
|
Loading…
Reference in New Issue