parent
303e6e9893
commit
8b3ce83d00
|
@ -54,6 +54,8 @@ QtObject:
|
|||
var found = false
|
||||
for chat in community.chats:
|
||||
if (chat.id == newChat.id):
|
||||
# canPost is not available in the newChat so we need to check what we had before
|
||||
newChat.canPost = community.chats[i].canPost
|
||||
community.chats[i] = newChat
|
||||
found = true
|
||||
i = i + 1
|
||||
|
|
|
@ -286,13 +286,13 @@ StackLayout {
|
|||
id: chatInput
|
||||
visible: {
|
||||
const community = chatsModel.communities.activeCommunity
|
||||
if (chatsModel.activeChannel.chatType !== Constants.chatTypePrivateGroupChat &&
|
||||
(!community.active ||
|
||||
community.access === Constants.communityChatPublicAccess ||
|
||||
community.admin || chatsModel.activeChannel.canPost)) {
|
||||
return true
|
||||
if (chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat) {
|
||||
return chatsModel.activeChannel.isMember
|
||||
}
|
||||
return chatsModel.activeChannel.isMember
|
||||
return !community.active ||
|
||||
community.access === Constants.communityChatPublicAccess ||
|
||||
community.admin ||
|
||||
chatsModel.activeChannel.canPost
|
||||
}
|
||||
enabled: !isBlocked
|
||||
chatInputPlaceholder: isBlocked ?
|
||||
|
|
Loading…
Reference in New Issue