We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa5363 commit 18c0aacCopy full SHA for 18c0aac
src/gui/tray/notificationhandler.cpp
@@ -171,6 +171,15 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
171
activity._links.insert(link._primary? 0 : activity._links.size(), link);
172
}
173
174
+ // e.g. announcement
175
+ if (activity._objectType != "remote_share"_L1 && activity._links.isEmpty()) {
176
+ ActivityLink link;
177
+ link._label = tr("Dismiss");
178
+ link._verb = "DELETE";
179
+ link._primary = true;
180
+ activity._links.append(link);
181
+ }
182
+
183
QUrl url(json.value("link"_L1).toString());
184
if (!url.isEmpty()) {
185
if (url.host().isEmpty()) {
0 commit comments