Convert primary, WEB and DELETE notification links to action buttons.
authorCamila <hello@camila.codes>
Wed, 11 May 2022 21:10:46 +0000 (23:10 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Mon, 16 May 2022 20:03:53 +0000 (22:03 +0200)
Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/activitylistmodel.cpp

index ebf6b75120ca19c94062e7fe2d409cb8b5cd63cd..0bf9274527a1bc9838699cd950d63b3f94cfe5fe 100644 (file)
@@ -778,9 +778,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);
         }
     }