Fix create group box.

This commit is contained in:
John Preston 2020-06-22 11:30:17 +04:00
parent 28570b45e3
commit a45d088ee4

View File

@ -88,7 +88,7 @@ void AddParticipantsBoxController::subscribeToMigration() {
}
void AddParticipantsBoxController::rowClicked(not_null<PeerListRow*> row) {
const auto &serverConfig = _peer->session().serverConfig();
const auto &serverConfig = session().serverConfig();
auto count = fullCount();
auto limit = _peer && (_peer->isChat() || _peer->isMegagroup())
? serverConfig.megagroupSizeMax