fix: hide chat input if you havent joined a group

This commit is contained in:
Richard Ramos 2020-11-16 15:42:53 -04:00 committed by Iuri Matias
parent e4b4bf9900
commit c4bfba5cbf
1 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,10 @@ StackLayout {
StatusChatInput {
id: chatInput
visible: {
if (chatsModel.activeChannel.chatType !== Constants.chatTypePrivateGroupChat) return true;
return chatsModel.activeChannel.isMember
}
anchors.bottom: parent.bottom
recentStickers: chatsModel.recentStickers
stickerPackList: chatsModel.stickerPacks