Skip to content
Snippets Groups Projects
Commit c7016751 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

contactmodel: make refreshFilter and emit contactRemoved general

Change-Id: I9679df3bda97d4401ea137088d006820154d141b
parent 747a45a0
No related branches found
No related tags found
No related merge requests found
...@@ -891,13 +891,12 @@ ContactModelPimpl::slotContactRemoved(const QString& accountId, ...@@ -891,13 +891,12 @@ ContactModelPimpl::slotContactRemoved(const QString& accountId,
} }
} }
if (banned) {
// Update the smartlist // Update the smartlist
linked.owner.conversationModel->refreshFilter(); linked.owner.conversationModel->refreshFilter();
if (banned) {
emit linked.bannedStatusChanged(contactUri, true); emit linked.bannedStatusChanged(contactUri, true);
} else {
emit linked.contactRemoved(contactUri);
} }
emit linked.contactRemoved(contactUri);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment