Skip to content

Add callIdHistory to context + internal context#1817

Merged
PorterNan merged 4 commits intomainfrom
jinan/stale-call-id-fix
Apr 26, 2022
Merged

Add callIdHistory to context + internal context#1817
PorterNan merged 4 commits intomainfrom
jinan/stale-call-id-fix

Conversation

@PorterNan
Copy link
Copy Markdown
Contributor

  • Update all visit to callId using latestCallId
  • Encapsule the access to internalMap directly to ensure no leaks

This is a PR based on #1693, and added more fixes into context as well, this is fully tested on a simulate call id change during remote stream rendering - https://github.com/Azure/communication-ui-library/tree/jinan/simulate-call-id-change

What

Why

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.

- Update all visit to callId using latestCallId
- Encapsule the access to internalMap directly to ensure no leaks
@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

/**
* @private
* Call Id will change during the call for at least 1 time
* This is to avoid async bug that call id has been changed during an async-await function
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great comment <3

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the composite UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@PorterNan PorterNan merged commit 6174e00 into main Apr 26, 2022
@PorterNan PorterNan deleted the jinan/stale-call-id-fix branch April 26, 2022 17:55
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