Set notification category

This commit is contained in:
Nicolas Werner 2021-12-19 09:34:50 +01:00
parent c03e4c1261
commit 9b25ef3c0d
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 3 additions and 0 deletions

View file

@ -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));
}
}
}

View file

@ -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