From 147d93815fb1cd6122c25b06bbd50db53a5e0244 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 25 Mar 2021 11:29:29 -0400 Subject: [PATCH] fix: fix unable to write to invite only community channels This was caused by the fact that the canPost property was not exposed from the ChatItem model. I'm actually not sure why it didn't show an error trying to call a function that doesn't exist --- src/app/chat/views/chat_item.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/chat/views/chat_item.nim b/src/app/chat/views/chat_item.nim index 1ed2dbce36..4a4211f49d 100644 --- a/src/app/chat/views/chat_item.nim +++ b/src/app/chat/views/chat_item.nim @@ -133,6 +133,11 @@ QtObject: QtProperty[bool] hasMentions: read = hasMentions + proc canPost*(self: ChatItemView): bool {.slot.} = result = ?.self.chatItem.canPost + + QtProperty[bool] canPost: + read = canPost + proc isMember*(self: ChatItemView): bool {.slot.} = if self.chatItem.isNil: return false let pubKey = status_settings.getSetting[string](Setting.PublicKey, "0x0")