Skip to content
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 bug where microphone error shows twice #5668

Merged
merged 4 commits into from
Feb 28, 2025
Merged

Conversation

carocao-msft
Copy link
Contributor

@carocao-msft carocao-msft commented Feb 26, 2025

What

Fix bug where microphone error shows twice

Why

image

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

Copy link
Contributor

github-actions bot commented Feb 26, 2025

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 28056 / 44676
62.79%
28056 / 44676
62.79%
786 / 1436
54.73%
2352 / 3724
63.15%
Current 28056 / 44666
62.81%
28056 / 44666
62.81%
786 / 1436
54.73%
2352 / 3724
63.15%
Diff 0 / -10
0.02%
0 / -10
0.02%
0 / 0
0%
0 / 0
0%

Copy link
Contributor

github-actions bot commented Feb 26, 2025

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 58257 / 94221
61.83%
58257 / 94221
61.83%
1177 / 2693
43.7%
3518 / 5818
60.46%
Current 58204 / 94221
61.77%
58204 / 94221
61.77%
1177 / 2693
43.7%
3502 / 5804
60.33%
Diff -53 / 0
-0.06%
-53 / 0
-0.06%
0 / 0
0%
-16 / -14
-0.13%

@@ -76,14 +76,15 @@ export const errorBarSelector: ErrorBarSelector = createSelector(
if (deviceManager.deviceAccess?.audio === false && isSafari()) {
activeErrorMessages.push({ type: 'callMicrophoneAccessDeniedSafari' });
}
if (deviceManager.deviceAccess?.audio === false && !isSafari()) {
if (
Copy link
Member

@JamesBurnside JamesBurnside Feb 27, 2025

Choose a reason for hiding this comment

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

nit: this would be better moved to an else if on the below if (diagnostics?.media.latest.microphonePermissionDenied?.value === true && isMacOS()) {
so it's clear that this condition is we don't push two microphone active errors

Copy link
Contributor

Chat bundle size is not changed.

  • Current size: 1777281
  • Base size: 1777281
  • Diff size: 0

Copy link
Contributor

CallWithChat bundle size is not changed.

  • Current size: 12401112
  • Base size: 12401112
  • Diff size: 0

Copy link
Contributor

Calling bundle size is not changed.

  • Current size: 12401100
  • Base size: 12401100
  • Diff size: 0

@carocao-msft carocao-msft enabled auto-merge (squash) February 28, 2025 18:37
@carocao-msft carocao-msft merged commit 893b40f into main Feb 28, 2025
40 checks passed
@carocao-msft carocao-msft deleted the carocao/bugfxi branch February 28, 2025 18:40
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