-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Call): introduce intermediary phase before joining call #13329
base: main
Are you sure you want to change the base?
Conversation
…t. It's only received when using internal server. Replace them with events from the base class so we make sure it's always received. Also, add a new event for failed joining Signed-off-by: DorraJaouad <[email protected]>
…nCall, connecting, connection failed) Signed-off-by: DorraJaouad <[email protected]>
…roduce a failed join message dialog. Signed-off-by: DorraJaouad <[email protected]>
Signed-off-by: DorraJaouad <[email protected]>
setTimeout(() => { | ||
// If by accident we never receive a users list, just switch to | ||
// "Waiting for others to join the call …" after some seconds. | ||
commit('finishedConnecting', { token, sessionId: participantIdentifier.sessionId }) | ||
}, 10000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's guaranteed to receive one of the above signaling events as we are the base server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works good in general, but I'd test it in some real calls before merging
@@ -321,27 +321,29 @@ const mutations = { | |||
if (state.inCall[token] && state.inCall[token][sessionId]) { | |||
Vue.delete(state.inCall[token], sessionId) | |||
} | |||
|
|||
if (state.connecting[token] && state.connecting[token][sessionId]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep this resetting (in case it survives somehow). Maybe via commit('finishedConnecting')
?
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js' | ||
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js' | ||
|
||
import store from '../../store/index.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have useStore composable, it should be better to use it here
@@ -36,6 +36,7 @@ const joinCall = async function(token, flags, silent, recordingConsent) { | |||
return await signalingJoinCall(token, flags, silent, recordingConsent) | |||
} catch (error) { | |||
console.debug('Error while joining call: ', error) | |||
throw error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe remove try-catch block here, since it's not needed?
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
Before
Recording.2024-09-17.160718.mp4
After
Recording.2024-09-17.160913.mp4
🏁 Checklist