Skip to content

bugfix: Do not show stale errors when a user rejoins a call#2549

Merged
prprabhu-ms merged 11 commits intomainfrom
prprabhu/b3030603
Nov 23, 2022
Merged

bugfix: Do not show stale errors when a user rejoins a call#2549
prprabhu-ms merged 11 commits intomainfrom
prprabhu/b3030603

Conversation

@prprabhu-ms
Copy link
Copy Markdown
Contributor

@prprabhu-ms prprabhu-ms commented Nov 22, 2022

What

Before this PR, stale errors were sometimes shown in composites via error bar when a user rejoins a call.

Before After
Before After

Repro steps:

  • Join a group call using CallComposite or CallWithChatComposite
  • Make sure your camera is in use by another application
  • Try turning on video
    • You will see an error bar saying "failed to start video". This is expected.
  • Leave the call
  • Rejoin call from the end call screen.
    • The "failed to start video" error bar will reappear. This is a bug.

This PR adds a prop to the ErrorBar component, ignorePremountErrors. When set, the component does not show errors that occurred before the component was mounted.

The composites set this prop so that errors from previous calls are ignored.

How Tested

  • New unit-tests
  • Make sure bug is fixed with the repro steps (see screen-captures above)
  • Make sure error bar is not dismissed when opening people / chat pane in mobile view (because the primary call pane is hidden in that case)
  • sanity test hold and lobby screens

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 22, 2022

Calling bundle size is increased❗.

  • Current size: 5465885
  • Base size: 5465641
  • Diff size: 244

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 22, 2022

CallWithChat bundle size is increased❗.

  • Current size: 5852904
  • Base size: 5852660
  • Diff size: 244

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 22, 2022

Chat bundle size is increased❗.

  • Current size: 5569348
  • Base size: 5569227
  • Diff size: 121

@github-actions
Copy link
Copy Markdown
Contributor

Comment thread packages/react-components/src/components/ErrorBar.test.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

Comment thread packages/react-components/src/components/ErrorBar.tsx
@prprabhu-ms prprabhu-ms enabled auto-merge (squash) November 23, 2022 22:57
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@prprabhu-ms prprabhu-ms merged commit a1fd00b into main Nov 23, 2022
@prprabhu-ms prprabhu-ms deleted the prprabhu/b3030603 branch November 23, 2022 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants