From 89fe35da10bde9f6c171b21fd52b95bb0d6a6c24 Mon Sep 17 00:00:00 2001 From: Jared <7060603@hotmail.ca> Date: Mon, 13 Jan 2025 21:12:52 -0700 Subject: [PATCH] cleanup(Notify): Remove unused parameter --- src/model/notificationgenerator.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/model/notificationgenerator.cpp b/src/model/notificationgenerator.cpp index 17a643d492..34a158ce53 100644 --- a/src/model/notificationgenerator.cpp +++ b/src/model/notificationgenerator.cpp @@ -11,11 +11,10 @@ namespace { -QString generateContent(const QHash& friendNotifications, - const QHash& conferenceNotifications, +QString generateContent(const QHash& conferenceNotifications, QString lastMessage, const ToxPk& sender) { - assert(!friendNotifications.empty() || !conferenceNotifications.empty()); + assert(!conferenceNotifications.empty()); if (conferenceNotifications.size() == 1) { auto it = conferenceNotifications.begin(); @@ -95,7 +94,7 @@ NotificationData NotificationGenerator::conferenceMessageNotification(const Conf } ret.title = c->getDisplayedName(); - ret.message = generateContent(friendNotifications, conferenceNotifications, message, sender); + ret.message = generateContent(conferenceNotifications, message, sender); ret.category = "im.received"; ret.pixmap = getSenderAvatar(profile, sender);