diff --git a/qml/components/chatInformationPage/ChatInformationTabItemMembersGroups.qml b/qml/components/chatInformationPage/ChatInformationTabItemMembersGroups.qml index 79a72db..87b5020 100644 --- a/qml/components/chatInformationPage/ChatInformationTabItemMembersGroups.qml +++ b/qml/components/chatInformationPage/ChatInformationTabItemMembersGroups.qml @@ -162,7 +162,7 @@ ChatInformationTabItemBase { interval: 600 property int fetchLimit: 50 onTriggered: { - if(chatInformationPage.isSuperGroup && !chatInformationPage.isChannel && (chatInformationPage.groupInformation.member_count > membersView.count)) { // + if(chatInformationPage.isSuperGroup && (!chatInformationPage.isChannel || chatInformationPage.canGetMembers) && (chatInformationPage.groupInformation.member_count > membersView.count)) { tabBase.loading = true tdLibWrapper.getSupergroupMembers(chatInformationPage.chatPartnerGroupId, fetchLimit, pageContent.membersList.count); fetchLimit = 200 diff --git a/qml/pages/ChatInformationPage.qml b/qml/pages/ChatInformationPage.qml index 18f6a2a..15ac664 100644 --- a/qml/pages/ChatInformationPage.qml +++ b/qml/pages/ChatInformationPage.qml @@ -38,6 +38,7 @@ Page { property bool isBasicGroup: false property bool isSuperGroup: false property bool isChannel: false + readonly property bool canGetMembers: ("can_get_members" in groupFullInformation) && groupFullInformation.can_get_members property string chatPartnerGroupId @@ -69,8 +70,6 @@ Page { } } - - Loader { id: mainContentLoader active: false