Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(core): fix for users without nicknames
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Dec 26, 2018
1 parent 01f79b0 commit 2000bf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widget/form/groupchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ void GroupChatForm::sendJoinLeaveMessages()

// user joins
for (const auto& peerPk : peers.keys()) {
// ignore weird issue: when user joins the group, the name is empty, then it's renamed to normal nickname (why?)
// so, just ignore the first insertion
if (!firstTime.value(peerPk, false)) {
if (!groupLast.contains(peerPk)) {
addSystemInfoMessage(tr("A new user has connected to the group"), ChatMessage::INFO, QDateTime::currentDateTime());
}
firstTime[peerPk] = true;
continue;
}
Expand Down

0 comments on commit 2000bf5

Please sign in to comment.