mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Set notification category
This commit is contained in:
parent
c03e4c1261
commit
9b25ef3c0d
2 changed files with 3 additions and 0 deletions
|
@ -1527,6 +1527,8 @@ Cache::saveState(const mtx::responses::Sync &res)
|
||||||
if (auto fr = std::get_if<
|
if (auto fr = std::get_if<
|
||||||
mtx::events::AccountDataEvent<mtx::events::account_data::FullyRead>>(&evt)) {
|
mtx::events::AccountDataEvent<mtx::events::account_data::FullyRead>>(&evt)) {
|
||||||
nhlog::db()->debug("Fully read: {}", fr->content.event_id);
|
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["image-data"] = icon;
|
||||||
hints["sound-name"] = "message-new-instant";
|
hints["sound-name"] = "message-new-instant";
|
||||||
hints["desktop-entry"] = "nheko";
|
hints["desktop-entry"] = "nheko";
|
||||||
|
hints["category"] = "im.received";
|
||||||
|
|
||||||
QList<QVariant> argumentList;
|
QList<QVariant> argumentList;
|
||||||
argumentList << "nheko"; // app_name
|
argumentList << "nheko"; // app_name
|
||||||
|
|
Loading…
Reference in a new issue