Ensure whitelist/blacklist procedure removes activity

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-07-05 23:32:08 +08:00
parent e985367b5e
commit fe59d4ec79
No known key found for this signature in database
GPG Key ID: C839200C384636B0

View File

@ -838,10 +838,10 @@ void ActivityListModel::slotTriggerAction(const int activityIndex, const int act
return;
} else if (action._verb == "WHITELIST_FOLDER" && !activity._folder.isEmpty()) {
FolderMan::instance()->whitelistFolderPath(activity._folder);
return;
removeActivityFromActivityList(activity);
} else if (action._verb == "BLACKLIST_FOLDER" && !activity._folder.isEmpty()) {
FolderMan::instance()->blacklistFolderPath(activity._folder);
return;
removeActivityFromActivityList(activity);
}
emit sendNotificationRequest(activity._accName, action._link, action._verb, activityIndex);