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

runfix: leave mls conversation #15972

Merged
merged 2 commits into from
Oct 11, 2023
Merged

runfix: leave mls conversation #15972

merged 2 commits into from
Oct 11, 2023

Conversation

PatrykBuniX
Copy link
Contributor

Description

#15965 introduced a regression in leaving MLS conversations. Leaving a MLS conversation is different than removing other users (we cannot send remove proposal for the self client, remove proposal has to be created by backend). When leaving MLS conversation we should remove self user "the proteus way", so just send a request to backend. For more details see https://wearezeta.atlassian.net/wiki/spaces/ENGINEERIN/pages/157287189/Use+case+leaving+a+conversation.

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

return this.removeMembersLocally(conversation, [userQualifiedId]);
}

const events = await this.removeMembersFromConversation(conversation, [userQualifiedId]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We cannot call .removeMembers method. We want to always delete the user "the proteus way", no need to check for conversation protocol.

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #15972 (6c93d8d) into dev (e353f50) will increase coverage by 0.06%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##              dev   #15972      +/-   ##
==========================================
+ Coverage   44.29%   44.36%   +0.06%     
==========================================
  Files         684      684              
  Lines       22905    22908       +3     
  Branches     5204     5204              
==========================================
+ Hits        10146    10163      +17     
+ Misses      11457    11442      -15     
- Partials     1302     1303       +1     

@PatrykBuniX PatrykBuniX merged commit 7203e19 into dev Oct 11, 2023
11 checks passed
@PatrykBuniX PatrykBuniX deleted the runfix/leave-mls-conversation branch October 11, 2023 11:51
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.

3 participants