Skip to content

Commit

Permalink
cleanup(Notify): Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Pigpog authored and iphydf committed Jan 14, 2025
1 parent 78bd4be commit 53304ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/model/notificationgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@

namespace {

QString generateContent(const QHash<const Friend*, size_t>& friendNotifications,
const QHash<const Conference*, size_t>& conferenceNotifications,
QString generateContent(const QHash<const Conference*, size_t>& conferenceNotifications,
QString lastMessage, const ToxPk& sender)
{
assert(!friendNotifications.empty() || !conferenceNotifications.empty());
assert(!conferenceNotifications.empty());

if (conferenceNotifications.size() == 1) {
auto it = conferenceNotifications.begin();
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 53304ed

Please sign in to comment.