diff --git a/fairchat/qml/pages/mainView/ChannelList.qml b/fairchat/qml/pages/mainView/ChannelList.qml index aedb29acf4e2e278716fa870b73c21c063913580..6685a49d7319c7e7462c87281c86b055a53b1708 100755 --- a/fairchat/qml/pages/mainView/ChannelList.qml +++ b/fairchat/qml/pages/mainView/ChannelList.qml @@ -54,9 +54,9 @@ Page { anchors.top: parent.top anchors.bottom: bottomLine.top onPressAndHold: { - if(model.type === "d"){ + // if(model.type === "d"){ menu.open() - } + // } } } @@ -96,6 +96,14 @@ Page { MenuItem{ id: blockUser visible: model.type === "d" + height: { + if( model.type === "d"){ + + }else{ + return 0 + } + } + onPressed: { if(!model.blocked){ console.log("pressed "+model.roomId) @@ -115,6 +123,14 @@ Page { verticalAlignment: Text.AlignVCenter } } + MenuItem{ + id:leaveChannel + visible: true + text: qsTr("leave room") + onPressed: { + rocketChatController.leaveChannel(model.roomId) + } + } } }