Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3e3317d

Browse files
committed
Allow calls to be detected if the new group call experience is enabled
1 parent 9ba0179 commit 3e3317d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/models/Call.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,13 @@ export class ElementCall extends Call {
635635
}
636636

637637
public static get(room: Room): ElementCall | null {
638-
// Only supported in video rooms (for now)
638+
// Only supported in the new group call experience or in video rooms
639639
if (
640-
SettingsStore.getValue("feature_video_rooms")
641-
&& SettingsStore.getValue("feature_element_call_video_rooms")
642-
&& room.isCallRoom()
640+
SettingsStore.getValue("feature_group_calls") || (
641+
SettingsStore.getValue("feature_video_rooms")
642+
&& SettingsStore.getValue("feature_element_call_video_rooms")
643+
&& room.isCallRoom()
644+
)
643645
) {
644646
const groupCalls = ElementCall.CALL_EVENT_TYPE.names.flatMap(eventType =>
645647
room.currentState.getStateEvents(eventType),

0 commit comments

Comments
 (0)