diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-06-27 14:28:25 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-06-28 09:35:41 +0200 |
commit | ff3b24ad722adc8d94a8f218f1a571ecb5a0da63 (patch) | |
tree | 69848832d5be8c4383ee098d49db8762272a160d /src | |
parent | 22e687e4a952c66da1c5d78b149072a2c9c48fda (diff) |
fix: Set signaling settings again after fetching them
The signaling settings are got before joining a room, but they were
simply ignored unless the conversation cluster mode was used (as in that
case the signaling object was destroyed and the settings were applied to
the new signaling object when chaning between different signaling
servers). However, with federation the settings must be refreshed when
changing between federated rooms, or between federated and non federated
rooms, so for simplicity the settings are now always set after fetching
them.
Note that, in any case, getting the settings before joining any room
might be unnecessary and it may need to be refined, but for now it is a
convenient way to refresh the setting when changing between federated
and non federated rooms.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/webrtc/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/webrtc/index.js b/src/utils/webrtc/index.js index ec66d7238..05bb4f9a2 100644 --- a/src/utils/webrtc/index.js +++ b/src/utils/webrtc/index.js @@ -125,6 +125,8 @@ async function connectSignaling(token) { }) signalingTypingHandler?.setSignaling(signaling) + } else { + signaling.setSettings(settings) } tokensInSignaling[token] = true |