Remove unused eventId() argument to postNotification()

This commit is contained in:
Mathew Broady
2020-12-21 11:24:24 +11:00
committed by Carl Schwan
parent 6482f08eba
commit 6a4b1983a1
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS
return;
}
NotificationsManager::instance().postNotification(this, lastEvent->id(), displayName(), sender->displayname(this), eventToString(*lastEvent), avatar(128));
NotificationsManager::instance().postNotification(this, displayName(), sender->displayname(this), eventToString(*lastEvent), avatar(128));
});
connect(this, &Room::aboutToAddHistoricalMessages,

View File

@@ -25,7 +25,7 @@ NotificationsManager::NotificationsManager(QObject *parent)
{
}
void NotificationsManager::postNotification(NeoChatRoom *room, const QString &eventid, const QString &roomname, const QString &sender, const QString &text, const QImage &icon)
void NotificationsManager::postNotification(NeoChatRoom *room, const QString &roomname, const QString &sender, const QString &text, const QImage &icon)
{
if (!NeoChatConfig::self()->showNotifications()) {
return;

View File

@@ -21,7 +21,7 @@ class NotificationsManager : public QObject
public:
static NotificationsManager &instance();
Q_INVOKABLE void postNotification(NeoChatRoom *roomId, const QString &eventId, const QString &roomName, const QString &senderName, const QString &text, const QImage &icon);
Q_INVOKABLE void postNotification(NeoChatRoom *roomId, const QString &roomName, const QString &senderName, const QString &text, const QImage &icon);
private:
NotificationsManager(QObject *parent = nullptr);