Skip to content

Commit

Permalink
Reset selection in contact list view when deleting selected contents
Browse files Browse the repository at this point in the history
Call selectNone on the list model to clear the selection after deleting
a selection of contacts.

Fixes #6623
  • Loading branch information
paw-hub authored and murilopereirame committed Mar 13, 2024
1 parent 8dec542 commit 235c240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contacts/view/ContactView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ export class ContactView extends BaseTopLevelView implements TopLevelView<Contac
}

private deleteSelectedContacts(): Promise<void> {
return deleteContacts(this.getSelectedContacts())
return deleteContacts(this.getSelectedContacts(), () => this.contactViewModel.listModel.selectNone())
}

getViewSlider(): ViewSlider | null {
Expand Down

0 comments on commit 235c240

Please sign in to comment.