From 727f8aec13ed931c7d0d01b219232ca15b4d007c Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 6 Dec 2017 18:55:08 +0400 Subject: [PATCH] Fix admin/creator status in megagroup members list. --- .../profile/profile_channel_controllers.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/profile/profile_channel_controllers.cpp b/Telegram/SourceFiles/profile/profile_channel_controllers.cpp index 0ad0ed2f7..92bcbc76d 100644 --- a/Telegram/SourceFiles/profile/profile_channel_controllers.cpp +++ b/Telegram/SourceFiles/profile/profile_channel_controllers.cpp @@ -517,7 +517,7 @@ void ParticipantsBoxController::setNonEmptyDescription() { bool ParticipantsBoxController::feedMegagroupLastParticipants() { if ((_role != Role::Members && _role != Role::Profile) - || _offset > 0) { + || delegate()->peerListFullRowsCount() > 0) { return false; } auto megagroup = _channel->asMegagroup(); @@ -564,7 +564,13 @@ bool ParticipantsBoxController::feedMegagroupLastParticipants() { } } appendRow(user); - ++_offset; + + // + // Don't count lastParticipants in _offset, because we don't know + // their exact information (admin / creator / restricted), they + // could simply be added from the last messages authors. + // + //++_offset; } sortByOnline(); return true;