mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Create more than one converted activity link, therby respecting maxactionbuttons
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
fe59d4ec79
commit
12931069c0
@ -870,12 +870,13 @@ QVariantList ActivityListModel::convertLinksToActionButtons(const Activity &acti
|
||||
QVariantList customList;
|
||||
|
||||
for (const auto &activityLink : activity._links) {
|
||||
if (!activityLink._primary) {
|
||||
// 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")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
customList << ActivityListModel::convertLinkToActionButton(activityLink);
|
||||
break;
|
||||
}
|
||||
|
||||
return customList;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user