Skip to content

Commit 95ebc7f

Browse files
open ChannelInfoViewModel control proprties (#995)
1 parent 8512624 commit 95ebc7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ open class ChatChannelInfoViewModel: ObservableObject, ChatChannelControllerDele
3636
@Published public var addUsersShown = false
3737
@Published public var selectedParticipant: ParticipantInfo?
3838

39-
public var shouldShowLeaveConversationButton: Bool {
39+
open var shouldShowLeaveConversationButton: Bool {
4040
if channel.isDirectMessageChannel {
4141
channel.ownCapabilities.contains(.deleteChannel)
4242
} else {
4343
channel.ownCapabilities.contains(.leaveChannel)
4444
}
4545
}
4646

47-
public var canRenameChannel: Bool {
47+
open var canRenameChannel: Bool {
4848
channel.ownCapabilities.contains(.updateChannel)
4949
}
5050

51-
public var shouldShowAddUserButton: Bool {
51+
open var shouldShowAddUserButton: Bool {
5252
if channel.isDirectMessageChannel {
5353
false
5454
} else {

0 commit comments

Comments
 (0)