1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(core): fix for users without nicknames

This commit is contained in:
Monsterovich 2018-12-26 18:32:27 +02:00
parent 01f79b0d08
commit 2000bf55f2

View File

@ -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;
}