Browse Source

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

Fix #4503
reviewable/pr4978/r1
Diadlo 8 years ago
parent
commit
0a590336b1
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 1
      src/model/group.cpp
  2. 1
      src/widget/form/groupchatform.cpp

1
src/model/group.cpp

@ -42,6 +42,7 @@ Group::Group(int groupId, const QString& name, bool isAvGroupchat, const QString @@ -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)

1
src/widget/form/groupchatform.cpp

@ -121,6 +121,7 @@ GroupChatForm::GroupChatForm(Group* chatGroup) @@ -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);
}

Loading…
Cancel
Save