mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Bugfix. Federated share activity show 'Decline' action button.
Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
parent
e35974d777
commit
55760d3dd0
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user