Stories/lists management for removed contact

This commit is contained in:
Fedor Indutny 2023-07-21 22:01:12 +02:00 committed by GitHub
parent 7340ea64b9
commit 2601197888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 0 deletions

View file

@ -965,6 +965,14 @@ export class ConversationModel extends window.Backbone
shouldSave: false,
});
window.reduxActions?.stories.removeAllContactStories(this.id);
const uuid = this.get('uuid');
if (uuid) {
window.reduxActions?.storyDistributionLists.removeMemberFromAllDistributionLists(
uuid
);
}
// Add notification
drop(this.queueJob('removeContact', () => this.maybeSetContactRemoved()));