fix pulley menu

This commit is contained in:
John Gibbon 2020-11-18 10:34:13 +01:00
parent 95b0ddef8e
commit 13fbd8e7a6

View file

@ -192,7 +192,7 @@ SilicaFlickable {
} }
PullDownMenu { PullDownMenu {
MenuItem { MenuItem {
visible: (chatPage.isSuperGroup || chatPage.isBasicGroup) && groupInformation && groupInformation.status["@type"] !== "chatMemberStatusBanned" visible: (chatInformationPage.isSuperGroup || chatInformationPage.isBasicGroup) && chatInformationPage.groupInformation && chatInformationPage.groupInformation.status["@type"] !== "chatMemberStatusBanned"
text: chatInformationPage.userIsMember ? qsTr("Leave Chat") : qsTr("Join Chat") text: chatInformationPage.userIsMember ? qsTr("Leave Chat") : qsTr("Join Chat")
onClicked: { onClicked: {
// ensure it's done even if the page is closed: // ensure it's done even if the page is closed: