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

fix(group): Show correct count of user on first creation

Fix #4503
This commit is contained in:
Diadlo 2018-03-01 00:20:14 +03:00
parent 9b4972e045
commit 0a590336b1
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ Group::Group(int groupId, const QString& name, bool isAvGroupchat, const QString
// on naming is appropriate
hasNewMessages = 0;
userWasMentioned = 0;
regeneratePeerList();
}
void Group::updatePeer(int peerId, QString name)

View File

@ -121,6 +121,7 @@ GroupChatForm::GroupChatForm(Group* chatGroup)
connect(group, &Group::titleChanged, this, &GroupChatForm::onTitleChanged);
connect(&Settings::getInstance(), &Settings::blackListChanged, this, &GroupChatForm::updateUserNames);
onUserListChanged();
setAcceptDrops(true);
Translator::registerHandler(std::bind(&GroupChatForm::retranslateUi, this), this);
}