Skip to content

Commit

Permalink
feat(group_call): add new tchap video group call config, differenciat…
Browse files Browse the repository at this point in the history
…e from 1to1 video call
  • Loading branch information
marc.sirisak committed Oct 9, 2024
1 parent 81450c7 commit fe2c9dd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
13 changes: 13 additions & 0 deletions README_tchap.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## Config variable

- tchap_features : Object containing the feature that can be activated by homeserver
- "feature_email_notification": Email notification
- "feature_space": Creation of spaces
- "feature_thread": Activate thread on messages
- "feature_audio_call": Activate 1 to 1 voice call
- "feature_video_call": Activate 1 to 1 video call
- "feature_video_group_call": Activate group call on rooms, for this feature to work, the values of `UIFeature.widgets` and `feature_group_calls` needs to be true
- "feature_screenshare_call": Activate 1 to 1 screenshare
- "tchap_sso_flow"
- "isActive": Activate ProConnect SSO flow

## File structures

- modules -> used for translation
Expand Down
19 changes: 6 additions & 13 deletions config.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"default_country_code": "FR",
"show_labs_settings": false,
"features": {
"feature_video_rooms": true,
"feature_video_rooms": false,
"feature_notification_settings2": false,
"feature_new_room_decoration_ui": true,
"feature_rust_crypto": true,
Expand All @@ -58,7 +58,7 @@
"UIFeature.shareSocial": false,
"UIFeature.registration": true,
"UIFeature.urlPreviews": false,
"UIFeature.widgets": false,
"UIFeature.widgets": true,
"UIFeature.shareQrCode": false,
"UIFeature.thirdPartyId": true,
"UIFeature.identityServer": true,
Expand Down Expand Up @@ -112,17 +112,10 @@
"tchap_features": {
"feature_email_notification": ["*"],
"feature_space": ["*"],
"feature_thread": ["dev01.tchap.incubateur.net", "dev02.tchap.incubateur.net", "ext01.tchap.incubateur.net"],
"feature_audio_call": [
"dev01.tchap.incubateur.net",
"dev02.tchap.incubateur.net",
"ext01.tchap.incubateur.net"
],
"feature_video_call": [
"dev01.tchap.incubateur.net",
"dev02.tchap.incubateur.net",
"ext01.tchap.incubateur.net"
],
"feature_thread": ["*"],
"feature_audio_call": ["*"],
"feature_video_call": ["*"],
"feature_video_group_call": ["*"],
"feature_screenshare_call": ["*"]
},
"tchap_sso_flow": {
Expand Down
1 change: 1 addition & 0 deletions config.preprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"feature_space": ["*"],
"feature_audio_call": ["i.tchap.gouv.fr", "e.tchap.gouv.fr"],
"feature_video_call": ["i.tchap.gouv.fr", "e.tchap.gouv.fr"],
"feature_video_group_call": [],
"feature_screenshare_call": ["*"]
},
"tchap_sso_flow": {
Expand Down
1 change: 1 addition & 0 deletions config.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
"feature_space": ["*"],
"feature_audio_call": ["*"],
"feature_video_call": ["agent.dinum.tchap.gouv.fr"],
"feature_video_group_call": [],
"feature_screenshare_call": ["*"]
},
"tchap_sso_flow": {
Expand Down
1 change: 1 addition & 0 deletions config.prod.lab.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
"feature_space": ["agent.dinum.tchap.gouv.fr"],
"feature_audio_call": ["*"],
"feature_video_call": ["agent.dinum.tchap.gouv.fr", "education.tchap.gouv.fr"],
"feature_video_group_call": [],
"feature_screenshare_call": ["*"]
},
"tchap_sso_flow": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ export default function RoomHeader({
{ /* :TCHAP: customize-room-header-bar - activate video call only if directmessage and if feature is activated on homeserver }
{!isVideoRoom && videoCallButton}
*/ }
{!isDirectMessage && TchapUIFeature.isFeatureActiveForHomeserver("feature_video_group_call") &&
!isVideoRoom && videoCallButton}

{isDirectMessage && TchapUIFeature.isFeatureActiveForHomeserver("feature_video_call") &&
!isVideoRoom && videoCallButton}
{/* end :TCHAP: */}
Expand Down

0 comments on commit fe2c9dd

Please sign in to comment.