Skip to content

Commit

Permalink
feat: Set signaling server federation feature as mandatory
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
  • Loading branch information
danxuliu committed Jul 18, 2024
1 parent 3b0004b commit 96f0959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Signaling/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function isCompatibleSignalingServer(IResponse $response): bool {
$features = explode(',', $featureHeader);
$features = array_map('trim', $features);
return in_array('audio-video-permissions', $features, true)
&& in_array('federation', $features, true)
&& in_array('incall-all', $features, true)
&& in_array('hello-v2', $features, true)
&& in_array('switchto', $features, true);
Expand Down
1 change: 1 addition & 0 deletions src/utils/signaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ Signaling.Standalone.prototype.helloResponseReceived = function(data) {

if (!this.settings.helloAuthParams.internal
&& (!this.hasFeature('audio-video-permissions')
|| !this.hasFeature('federation')
|| !this.hasFeature('incall-all')
|| !this.hasFeature('switchto'))) {
showError(
Expand Down

0 comments on commit 96f0959

Please sign in to comment.