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: leave call on conversation delete [FS-1608] #14795

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

PatrykBuniX
Copy link
Contributor

@PatrykBuniX PatrykBuniX commented Mar 7, 2023

BugFS-1608 [Web] client does not leave call when conversation gets deleted

Call was never ended after conversation was deleted, so end users were still able to here each other even though there was no conversation nor call visible on the UI.

This PR should fix this bug for both Proteus and MLS calls + @wireapp/core package version bump.

Comment on lines -243 to +245
const leaveCall = async (conversationId: QualifiedId) => {
const conversation = this.getConversationById(conversationId);

if (!conversation?.isUsingMLSProtocol) {
const closeCall = async (conversationId: QualifiedId, conversationType: CONV_TYPE) => {
// There's nothing we need to do for non-mls calls
if (conversationType !== CONV_TYPE.CONFERENCE_MLS) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In case of closing a call after deleting a conversation, the conversation might not be found with getConversationById as call close works asynchronously (and is fired by avs). So it's better to relay on a call conversation type.

@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Merging #14795 (663e14b) into dev (9814a3d) will decrease coverage by 0.03%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##              dev   #14795      +/-   ##
==========================================
- Coverage   42.82%   42.80%   -0.03%     
==========================================
  Files         621      621              
  Lines       21219    21225       +6     
  Branches     4869     4870       +1     
==========================================
- Hits         9088     9085       -3     
- Misses      10973    10981       +8     
- Partials     1158     1159       +1     

@PatrykBuniX PatrykBuniX merged commit 0a0b3c3 into dev Mar 9, 2023
@PatrykBuniX PatrykBuniX deleted the fix/FS-1608-leave-call-on-conv-delete branch March 9, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants