fix: allow famedly calls for everyone before choosing an existing one
This commit is contained in:
parent
d4566d7512
commit
d10befcac5
|
|
@ -764,6 +764,10 @@ class VoIP {
|
||||||
String? application,
|
String? application,
|
||||||
String? scope,
|
String? scope,
|
||||||
) async {
|
) async {
|
||||||
|
if (!room.groupCallsEnabledForEveryone) {
|
||||||
|
await room.enableGroupCalls();
|
||||||
|
}
|
||||||
|
|
||||||
final groupCall = getGroupCallById(room.id, groupCallId);
|
final groupCall = getGroupCallById(room.id, groupCallId);
|
||||||
|
|
||||||
if (groupCall != null) {
|
if (groupCall != null) {
|
||||||
|
|
@ -774,10 +778,6 @@ class VoIP {
|
||||||
return groupCall;
|
return groupCall;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!room.groupCallsEnabledForEveryone) {
|
|
||||||
await room.enableGroupCalls();
|
|
||||||
}
|
|
||||||
|
|
||||||
// The call doesn't exist, but we can create it
|
// The call doesn't exist, but we can create it
|
||||||
return await _newGroupCall(
|
return await _newGroupCall(
|
||||||
groupCallId,
|
groupCallId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue