Skip to content

Conversation

@danxuliu
Copy link
Member

This fixes a regression introduced in #10206

After a force reconnection the local participant state is updated in the store. If the participant is not in a call the call flags will be null, but the store expects an integer as the call flag, and any value different from 0 (disconnected) is treated as "in the call".

This should not happen in the real world, as forced reconnections are only triggered during calls and in that case the flags are properly set, but better fix it anyway ;-)

How to test

window.getSignaling = function() {
	return signaling
}
  • Rebuild the code
  • Setup the HPB
  • Open a conversation in Talk
    In the browser console, run getSignaling().forceReconnect(true)

Result with this pull request

There are no changes in the UI

Result without this pull request

The call view is shown, although the participant is not actually in the call

After a force reconnection the local participant state is updated in the
store. If the participant is not in a call the call flags will be null,
but the store expects an integer as the call flag, and any value
different from 0 (disconnected) is treated as "in the call".

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu added this to the 💙 Next Major (28) milestone Aug 18, 2023
@danxuliu danxuliu requested a review from Antreesy August 18, 2023 12:23
@danxuliu
Copy link
Member Author

/backport to stable27

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've actually noticed it when tested #8427, but only once, so I thought, it was fixed by it 🙈

@Antreesy Antreesy enabled auto-merge August 18, 2023 14:26
@Antreesy Antreesy merged commit 7bcb9bc into master Aug 18, 2023
@Antreesy Antreesy deleted the fix-call-view-shown-if-force-reconnected-when-not-in-a-call branch August 18, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants