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);