Make clicking on notifications open the room they're coming from
Implements #28
This commit is contained in:
committed by
Nicolas Fella
parent
5b39cd4ae8
commit
e1775f94c6
@@ -12,6 +12,8 @@
|
||||
|
||||
#include <KNotification>
|
||||
|
||||
#include "neochatroom.h"
|
||||
|
||||
class NotificationsManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -19,7 +21,7 @@ class NotificationsManager : public QObject
|
||||
public:
|
||||
static NotificationsManager &instance();
|
||||
|
||||
Q_INVOKABLE void postNotification(const QString &roomId, const QString &eventId, const QString &roomName, const QString &senderName, const QString &text, const QImage &icon);
|
||||
Q_INVOKABLE void postNotification(NeoChatRoom *roomId, const QString &eventId, const QString &roomName, const QString &senderName, const QString &text, const QImage &icon);
|
||||
|
||||
private:
|
||||
NotificationsManager(QObject *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user