Skip to content

Commit

Permalink
fix(Notify): Always put username in conference notif
Browse files Browse the repository at this point in the history
  • Loading branch information
Pigpog authored and iphydf committed Jan 22, 2025
1 parent 4559469 commit 180664e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/model/notificationgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ QString generateContent(const QHash<const Conference*, size_t>& conferenceNotifi
{
assert(!conferenceNotifications.empty());

if (conferenceNotifications.size() == 1) {
auto it = conferenceNotifications.begin();
if (it == conferenceNotifications.end()) {
qFatal("Concurrency error: conference notifications got cleared while reading");
}
return it.key()->getPeerList()[sender] + ": " + lastMessage;
auto it = conferenceNotifications.begin();
if (it == conferenceNotifications.end()) {
qFatal("Concurrency error: conference notifications got cleared while reading");
}
return lastMessage;
return it.key()->getPeerList()[sender] + ": " + lastMessage;
}

QPixmap getSenderAvatar(Profile* profile, const ToxPk& sender)
Expand Down

0 comments on commit 180664e

Please sign in to comment.