Show channel members on chat information page
if can_get_members in supergroupFullInfo is true.
This commit is contained in:
parent
3abdbe6a58
commit
08a95d4f07
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue