From 9a048427b3edbd8435ea7998feadf26bacbf95b4 Mon Sep 17 00:00:00 2001 From: Khalid Date: Fri, 3 Oct 2025 17:30:37 +0300 Subject: [PATCH] open ChannelInfoViewModel control proprties --- .../ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift index 9c1c474c..4c9051f5 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift @@ -36,7 +36,7 @@ open class ChatChannelInfoViewModel: ObservableObject, ChatChannelControllerDele @Published public var addUsersShown = false @Published public var selectedParticipant: ParticipantInfo? - public var shouldShowLeaveConversationButton: Bool { + open var shouldShowLeaveConversationButton: Bool { if channel.isDirectMessageChannel { channel.ownCapabilities.contains(.deleteChannel) } else { @@ -44,11 +44,11 @@ open class ChatChannelInfoViewModel: ObservableObject, ChatChannelControllerDele } } - public var canRenameChannel: Bool { + open var canRenameChannel: Bool { channel.ownCapabilities.contains(.updateChannel) } - public var shouldShowAddUserButton: Bool { + open var shouldShowAddUserButton: Bool { if channel.isDirectMessageChannel { false } else {