Merge pull request #318 from monich/can_get_members
Show channel members on chat information page
This commit is contained in:
commit
74d584fdcc
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue