-
Notifications
You must be signed in to change notification settings - Fork 291
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
feat: Remove a group from conversation list after leaving it #18227
base: dev
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #18227 +/- ##
=======================================
Coverage 46.39% 46.40%
=======================================
Files 797 800 +3
Lines 25798 25833 +35
Branches 5886 5889 +3
=======================================
+ Hits 11970 11987 +17
- Misses 12326 12341 +15
- Partials 1502 1505 +3 |
@@ -321,6 +321,25 @@ export class ActionsViewModel { | |||
return Promise.reject(); | |||
}; | |||
|
|||
readonly removeConversation = (conversationEntity: Conversation): Promise<void> => { | |||
if (conversationEntity.isGroup() && conversationEntity.isSelfUserRemoved()) { | |||
return new Promise(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to wrap it in promise?
{ | ||
condition: conversationEntity.isGroup() && conversationEntity.isSelfUserRemoved(), | ||
item: { | ||
click: async () => actionsViewModel.removeConversation(conversationEntity), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After removing promise wrapper:
click: async () => actionsViewModel.removeConversation(conversationEntity), | |
click: () => actionsViewModel.removeConversation(conversationEntity), |
Description
Possibility to remove a group conversation from list, while user has leave a group, or will be kicked from the group.
Checklist