Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila <hello@camila.codes>2022-05-12 00:10:46 +0300
committerCamila <hello@camila.codes>2022-05-13 18:33:34 +0300
commit4e5bbca2d1a7f8c00ae72a5034beba242f11d446 (patch)
treeca4e776b4b5eef9b7e27b761e1861d9cc14cc8b7
parentc62756406b2a62a327f0af2facb6f8b4b8af9fd4 (diff)
Convert primary, WEB and DELETE notification links to action buttons.bugfix/two-factor-notification
Signed-off-by: Camila <hello@camila.codes>
-rw-r--r--src/gui/tray/activitylistmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp
index 8ffd65077..1f65a732f 100644
--- a/src/gui/tray/activitylistmodel.cpp
+++ b/src/gui/tray/activitylistmodel.cpp
@@ -773,9 +773,9 @@ QVariantList ActivityListModel::convertLinksToActionButtons(const Activity &acti
}
for (const auto &activityLink : activity._links) {
- if (activityLink._verb == QStringLiteral("DELETE")
- || (activity._objectType == QStringLiteral("chat") || activity._objectType == QStringLiteral("call")
- || activity._objectType == QStringLiteral("room"))) {
+ if (activityLink._primary
+ || activityLink._verb == QStringLiteral("DELETE")
+ || activityLink._verb == QStringLiteral("WEB")) {
customList << ActivityListModel::convertLinkToActionButton(activityLink);
}
}