Draft
Conversation
β¦into v5-chat-info
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the βοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Generated by π« Danger |
Co-authored-by: Stream Bot <ci@getstream.io>
Collaborator
SDK Size
|
Collaborator
StreamChatSwiftUI XCSize
Show 41 more objects
|
Public Interface+ public struct ChatInfoDirectMessageView: View
+
+ public var body: some View
+
+
+ public init(factory: Factory = DefaultViewFactory.shared,participant: ParticipantInfo)
+ public struct ChatInfoGroupHeaderView: View
+
+ public var body: some View
+
+
+ public init(viewModel: ChatChannelInfoViewModel)
+ public struct EditGroupView: View
+
+ public var body: some View
+
+
+ public init(viewModel: ChatChannelInfoViewModel)
+ public struct ChatInfoMemberView: View
+
+ public var body: some View
+
+
+ public init(factory: Factory = DefaultViewFactory.shared,participant: ParticipantInfo,backgroundColor: UIColor? = nil,onAppear: @escaping () -> Void,onTap: @escaping () -> Void)
+ public extension Appearance.ColorPalette
+ public struct InfoSectionCard: View
+
+ public var body: some View
+
+
+ public init(@ViewBuilder content: () -> Content)
+ public struct MemberListView: View
+
+ public var body: some View
+
+
+ public init(factory: Factory = DefaultViewFactory.shared,viewModel: ChatChannelInfoViewModel)
- public struct ChatInfoMentionText: View
-
- public var body: some View
-
-
- public init(participant: ParticipantInfo? = nil)
- public struct ChannelNameUpdateView: View
-
- public var body: some View
-
-
- public init(viewModel: ChatChannelInfoViewModel)
- public struct ChatInfoOptionsView: View
-
- public var body: some View
-
-
- public init(factory: Factory = DefaultViewFactory.shared,viewModel: ChatChannelInfoViewModel)
- public struct ChannelInfoDivider: View
-
- public var body: some View
-
-
- public init()
- public struct ChatInfoDirectChannelView: View
-
- public var body: some View
-
-
- public init(factory: Factory = DefaultViewFactory.shared,participant: ParticipantInfo?)
- public struct ChatChannelInfoButton: View
-
- public var body: some View
-
-
- public init(title: String,iconName: String,foregroundColor: Color,buttonTapped: @escaping () -> Void)
public struct AddUsersView: View
- public init(factory: Factory = DefaultViewFactory.shared,loadedUserIds: [String],onUserTap: @escaping (ChatUser) -> Void)
+ public init(factory: Factory = DefaultViewFactory.shared,loadedUserIds: [String],onConfirm: @escaping ([ChatUser]) -> Void)
public final class AddUsersOptions: Sendable
- public let loadedUsers: [ChatUser]
+ public let loadedUserIds: [String]
- public init(loadedUsers: [ChatUser])
+ public init(loadedUserIds: [String])
@MainActor public class ChatChannelInfoViewModel: ObservableObject, ChatChannelControllerDelegate
- @Published public var leaveGroupAlertShown
+ @Published public var memberListSheetShown
- @Published public var errorShown
+ @Published public var editGroupShown
- @Published public var channelName: String
+ @Published public var isUploadingGroupAvatar
- @Published public var channel: ChatChannel
+ @Published public var leaveGroupAlertShown
- @Published public var channelId
+ @Published public var blockUserAlertShown
- @Published public var keyboardShown
+ @Published public var errorShown
- @Published public var addUsersShown
+ @Published public var channelName: String
- @Published public var selectedParticipant: ParticipantInfo?
+ @Published public var channel: ChatChannel
- open var shouldShowLeaveConversationButton: Bool
+ @Published public var channelId
- open var shouldShowMuteChannelButton: Bool
+ @Published public var keyboardShown
- open var canRenameChannel: Bool
+ @Published public var addUsersShown
- open var shouldShowAddUserButton: Bool
+ @Published public var selectedParticipant: ParticipantInfo?
- public var showSingleMemberDMView: Bool
+ open var shouldShowBlockUserButton: Bool
- public var displayedParticipants: [ParticipantInfo]
+ public var isDMUserBlocked: Bool
- open var leaveButtonTitle: String
+ public var blockUserTitle: String
- open var leaveConversationDescription: String
+ open var shouldShowLeaveConversationButton: Bool
- public var showMoreUsersButtonTitle: String
+ open var shouldShowMuteChannelButton: Bool
- public var notDisplayedParticipantsCount: Int
+ open var canRenameChannel: Bool
- public var mutedText: String
+ open var shouldShowAddUserButton: Bool
- public var showMoreUsersButton: Bool
+ public var showSingleMemberDMView: Bool
-
+ public var displayedParticipants: [ParticipantInfo]
-
+ public var allParticipants: [ParticipantInfo]
- public init(channel: ChatChannel)
+ open var leaveButtonTitle: String
-
+ open var leaveConversationDescription: String
-
+ public var notDisplayedParticipantsCount: Int
- public func onlineInfo(for user: ChatUser)-> String
+ public var mutedText: String
- public func onParticipantAppear(_ participantInfo: ParticipantInfo)
+ public var showMoreUsersButton: Bool
- public func leaveConversationTapped(completion: @escaping @MainActor () -> Void)
+ public var allMemberIds: [String]
- public func cancelGroupRenaming()
+
- public func confirmGroupRenaming()
+
- public func channelController(_ channelController: ChatChannelController,didUpdateChannel channel: EntityChange<ChatChannel>)
+ public init(channel: ChatChannel)
- public func addUserTapped(_ user: ChatUser)
+
- open func participantActions(for participant: ParticipantInfo)-> [ParticipantAction]
+
- public func muteAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func onlineInfo(for user: ChatUser)-> String
- public func unmuteAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func onParticipantAppear(_ participantInfo: ParticipantInfo)
- public func removeUserAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func onSheetMemberAppear(_ participantInfo: ParticipantInfo)
+ public func leaveConversationTapped(completion: @escaping @MainActor () -> Void)
+ public func blockUserTapped()
+ public func cancelGroupRenaming()
+ public func confirmGroupRenaming()
+ public func saveGroupEdit(name: String,image: UIImage?)
+ public func channelController(_ channelController: ChatChannelController,didUpdateChannel channel: EntityChange<ChatChannel>)
+ public func addUsersTapped(_ users: [ChatUser])
+ open func participantActions(for participant: ParticipantInfo)-> [ParticipantAction]
+ public func muteAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func unmuteAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func removeUserAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func blockParticipantAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func leaveGroupAction(onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
public final class AddUsersViewOptions: Sendable
- public let onUserTap: @MainActor (ChatUser) -> Void
+ public let onConfirm: @MainActor ([ChatUser]) -> Void
- public init(options: AddUsersOptions,onUserTap: @escaping @MainActor (ChatUser) -> Void)
+ public init(options: AddUsersOptions,onConfirm: @escaping @MainActor ([ChatUser]) -> Void) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π Issue Links
Provide all Linear and/or Github issues related to this PR, if applicable.
π― Goal
Describe why we are making this change.
π Summary
Provide bullet points with the most important changes in the codebase.
π Implementation
Provide a detailed description of the implementation and explain your decisions if you find them relevant.
π¨ Showcase
Add relevant screenshots and/or videos/gifs to easily see what this PR changes, if applicable.
π§ͺ Manual Testing Notes
Explain how this change can be tested manually, if applicable.
βοΈ Contributor Checklist
docs-contentrepo