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:
parent
01f79b0d08
commit
2000bf55f2
|
@ -325,9 +325,10 @@ void GroupChatForm::sendJoinLeaveMessages()
|
||||||
|
|
||||||
// user joins
|
// user joins
|
||||||
for (const auto& peerPk : peers.keys()) {
|
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 (!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;
|
firstTime[peerPk] = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user