summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-01-12 19:09:19 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-01-12 19:09:19 +0100
commitf51188df153b536c44435cc86024e5cc50d6c63c (patch)
tree08864812a1a9c3859937e7839f5984d7c58ea308 /src
parentFix device verification colors (diff)
downloadnheko-f51188df153b536c44435cc86024e5cc50d6c63c.tar.xz
Add profile to notifications on KDE
Diffstat (limited to 'src')
-rw-r--r--src/notifications/ManagerLinux.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp

index fad21ed7..23734789 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp
@@ -25,6 +25,7 @@ #include "Cache.h" #include "EventAccessors.h" #include "MxcImageProvider.h" +#include "UserSettingsPage.h" #include "Utils.h" NotificationsManager::NotificationsManager(QObject *parent) @@ -161,6 +162,9 @@ NotificationsManager::systemPostNotification(const QString &room_id, hints[QStringLiteral("desktop-entry")] = "nheko"; hints[QStringLiteral("category")] = "im.received"; + if (auto profile = UserSettings::instance()->profile(); !profile.isEmpty()) + hints[QStringLiteral("x-kde-origin-name")] = profile; + uint replace_id = 0; if (!event_id.isEmpty()) { for (auto elem = notificationIds.begin(); elem != notificationIds.end(); ++elem) {