Set notification category

v0.9.1-fixes
Nicolas Werner 3 years ago
parent c03e4c1261
commit 9b25ef3c0d
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/Cache.cpp
  2. 1
      src/notifications/ManagerLinux.cpp

@ -1527,6 +1527,8 @@ Cache::saveState(const mtx::responses::Sync &res)
if (auto fr = std::get_if<
mtx::events::AccountDataEvent<mtx::events::account_data::FullyRead>>(&evt)) {
nhlog::db()->debug("Fully read: {}", fr->content.event_id);
emit removeNotification(QString::fromStdString(room.first),
QString::fromStdString(fr->content.event_id));
}
}
}

@ -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<QVariant> argumentList;
argumentList << "nheko"; // app_name

Loading…
Cancel
Save