Skip to content

Commit

Permalink
Do not create dismiss links for notifications as these are not used a…
Browse files Browse the repository at this point in the history
…nyway

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 5, 2023
1 parent 2c4bb2c commit 0cfacb5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/gui/tray/notificationhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
a._links.insert(al._primary? 0 : a._links.size(), al);
}

if (a._links.isEmpty()) {
ActivityLink dismissLink;
dismissLink._label = tr("Dismiss");
dismissLink._verb = "DELETE";
dismissLink._primary = false;
a._links.insert(0, dismissLink);
}

QUrl link(json.value("link").toString());
if (!link.isEmpty()) {
if (link.host().isEmpty()) {
Expand Down

0 comments on commit 0cfacb5

Please sign in to comment.