Merge pull request #318 from monich/can_get_members

Show channel members on chat information page
This commit is contained in:
Sebastian Wolf 2021-01-15 21:52:06 +01:00 committed by GitHub
commit 74d584fdcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -162,7 +162,7 @@ ChatInformationTabItemBase {
interval: 600 interval: 600
property int fetchLimit: 50 property int fetchLimit: 50
onTriggered: { 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 tabBase.loading = true
tdLibWrapper.getSupergroupMembers(chatInformationPage.chatPartnerGroupId, fetchLimit, pageContent.membersList.count); tdLibWrapper.getSupergroupMembers(chatInformationPage.chatPartnerGroupId, fetchLimit, pageContent.membersList.count);
fetchLimit = 200 fetchLimit = 200

View file

@ -38,6 +38,7 @@ Page {
property bool isBasicGroup: false property bool isBasicGroup: false
property bool isSuperGroup: false property bool isSuperGroup: false
property bool isChannel: false property bool isChannel: false
readonly property bool canGetMembers: ("can_get_members" in groupFullInformation) && groupFullInformation.can_get_members
property string chatPartnerGroupId property string chatPartnerGroupId
@ -69,8 +70,6 @@ Page {
} }
} }
Loader { Loader {
id: mainContentLoader id: mainContentLoader
active: false active: false