Show notification count in tray icon.

This commit is contained in:
Black Hat
2019-07-01 18:19:00 +08:00
parent 858c5a638f
commit 3e0009a069
11 changed files with 251 additions and 26 deletions

View File

@@ -26,7 +26,7 @@ NotificationsManager::NotificationsManager(QObject *parent)
void NotificationsManager::postNotification(
const QString &roomid, const QString &eventid, const QString &roomname,
const QString &sender, const QString &text, const QImage &icon) {
uint id = showNotification(roomname, sender + ": " + text, icon);
uint id = showNotification(sender + " (" + roomname + ")", text, icon);
notificationIds[id] = roomEventId{roomid, eventid};
}
/**