From c9a5fd9d3fae21b16e0c566ee7547de6dea88993 Mon Sep 17 00:00:00 2001 From: alex-z Date: Sat, 2 Mar 2024 15:11:38 +0100 Subject: [PATCH] Bugfix. Federated share activity show 'Decline' action button. Signed-off-by: alex-z --- src/gui/tray/activitylistmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp index 09336e0c8a443..d0866c440c506 100644 --- a/src/gui/tray/activitylistmodel.cpp +++ b/src/gui/tray/activitylistmodel.cpp @@ -883,7 +883,9 @@ QVariantList ActivityListModel::convertLinksToActionButtons(const Activity &acti // Use the isDismissable model role to present custom dismiss button if needed // Also don't show "View chat" for talk activities, default action will open chat anyway - if (activityLink._verb == "DELETE" || (activityLink._verb == "WEB" && activity._objectType == "chat")) { + const auto isUseCustomDeleteAction = activityLink._verb == "DELETE" + && activity._objectType != QStringLiteral("remote_share"); + if (isUseCustomDeleteAction || (activityLink._verb == "WEB" && activity._objectType == "chat")) { continue; }