fix: allow famedly calls for everyone before choosing an existing one

This commit is contained in:
td 2024-05-21 15:04:25 +05:30
parent d4566d7512
commit d10befcac5
No known key found for this signature in database
GPG Key ID: 62A30523D4D6CE28
1 changed files with 4 additions and 4 deletions

View File

@ -764,6 +764,10 @@ class VoIP {
String? application,
String? scope,
) async {
if (!room.groupCallsEnabledForEveryone) {
await room.enableGroupCalls();
}
final groupCall = getGroupCallById(room.id, groupCallId);
if (groupCall != null) {
@ -774,10 +778,6 @@ class VoIP {
return groupCall;
}
if (!room.groupCallsEnabledForEveryone) {
await room.enableGroupCalls();
}
// The call doesn't exist, but we can create it
return await _newGroupCall(
groupCallId,