Fix members dropdown and mention autocomplete.

Fixes #7345.
This commit is contained in:
John Preston
2020-03-13 23:14:23 +04:00
parent 084b9ce4de
commit 1492571232
6 changed files with 22 additions and 20 deletions

View File

@@ -192,7 +192,7 @@ void GroupMembersWidget::refreshMembers() {
fillChatMembers(chat);
} else if (const auto megagroup = peer()->asMegagroup()) {
auto &megagroupInfo = megagroup->mgInfo;
if (megagroupInfo->lastParticipants.empty() || megagroup->lastParticipantsCountOutdated()) {
if (megagroup->lastParticipantsRequestNeeded()) {
Auth().api().requestLastParticipants(megagroup);
}
fillMegagroupMembers(megagroup);