diff --git a/src/app/chat/event_handling.nim b/src/app/chat/event_handling.nim index e22593a2ac..91694f8aa8 100644 --- a/src/app/chat/event_handling.nim +++ b/src/app/chat/event_handling.nim @@ -41,6 +41,11 @@ proc handleChatEvents(self: ChatController) = if (evArgs.communities.len > 0): for community in evArgs.communities: self.view.communities.addCommunityToList(community) + if (self.view.communities.activeCommunity.active and self.view.communities.activeCommunity.communityItem.id == community.id): + let communityChannel = self.view.communities.activeCommunity.chats.getChannelById(self.view.activeChannel.chatItem.id) + self.view.activeChannel.chatItem.canPost = communityChannel.canPost + self.view.activeChannelChanged() + if (evArgs.communityMembershipRequests.len > 0): self.view.communities.addMembershipRequests(evArgs.communityMembershipRequests) if (evArgs.pinnedMessages.len > 0):