fix(groups): Hide invitation for admin

Closes: #4574
This commit is contained in:
Boris Melnik 2022-01-27 21:10:21 +03:00 committed by Sale Djenic
parent d8a7a3d812
commit 5099ca4b3e
2 changed files with 3 additions and 4 deletions

View File

@ -11,6 +11,7 @@ Column {
topPadding: visible ? Style.current.bigPadding : 0
bottomPadding: visible? 50 : 0
property bool amIChatAdmin: false
property string chatName: ""
property int chatType: -1
property string chatColor: ""
@ -83,10 +84,7 @@ Column {
}
Item {
//NEED TO CHECK THIS
// visible: root.store.chatsModelInst.channelView.activeChannel.chatType === Constants.chatType.privateGroupChat
// && root.store.chatsModelInst.channelView.activeChannel.isMemberButNotJoined
visible: root.chatType === Constants.chatType.privateGroupChat
visible: root.chatType === Constants.chatType.privateGroupChat && !root.amIChatAdmin
anchors.horizontalCenter: parent.horizontalCenter
width: visible ? joinChat.width : 0
height: visible ? 100 : 0

View File

@ -270,6 +270,7 @@ Column {
chatName: root.senderDisplayName
chatType: messageStore.getChatType()
chatColor: messageStore.getChatColor()
amIChatAdmin: messageStore.amIChatAdmin()
chatIcon: root.senderIcon
chatIconIsIdenticon: root.isSenderIconIdenticon
}