From 9b25ef3c0d3b8399c133926fe4b1aa317998d2d2 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 19 Dec 2021 09:34:50 +0100 Subject: Set notification category --- src/Cache.cpp | 2 ++ src/notifications/ManagerLinux.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/Cache.cpp b/src/Cache.cpp index f22afc7f..dd26157c 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1527,6 +1527,8 @@ Cache::saveState(const mtx::responses::Sync &res) if (auto fr = std::get_if< mtx::events::AccountDataEvent>(&evt)) { nhlog::db()->debug("Fully read: {}", fr->content.event_id); + emit removeNotification(QString::fromStdString(room.first), + QString::fromStdString(fr->content.event_id)); } } } diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp index 14021b96..a3a2dbe8 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp @@ -147,6 +147,7 @@ NotificationsManager::systemPostNotification(const QString &room_id, hints["image-data"] = icon; hints["sound-name"] = "message-new-instant"; hints["desktop-entry"] = "nheko"; + hints["category"] = "im.received"; QList argumentList; argumentList << "nheko"; // app_name -- cgit 1.4.1