stream-chat-swiftui icon indicating copy to clipboard operation
stream-chat-swiftui copied to clipboard

access to the isVoiceRecordingConfirmationRequiredEnabled flag

Open felipeska opened this issue 6 months ago • 2 comments

What are you trying to achieve?

I'm trying to change the next flag:

https://github.com/GetStream/stream-chat-swift/blob/develop/Sources/StreamChatUI/Components.swift#L540

 /// When set to `true` recorded messages can be grouped together and send as part of one message.
 /// When set to `false`, recorded messages will be sent instantly.
 public var isVoiceRecordingConfirmationRequiredEnabled = true

If possible, how can you achieve this currently?

Not sure if I can access to this specific component configuration, in a similar way to the isVoiceRecordingEnabled provided in the ComposerConfig

/// Config for customizing the composer.
public struct ComposerConfig {

    public var isVoiceRecordingEnabled: Bool
   ///....

    public init(
        isVoiceRecordingEnabled: Bool = false,
    ///....

What would be the better way?

would be great having both configurations in the ComposerConfig API

public struct ComposerConfig {

    public var isVoiceRecordingEnabled: Bool
    public var isVoiceRecordingConfirmationRequiredEnabled: Bool
    ///....

    public init(
        isVoiceRecordingEnabled: Bool = false,
        isVoiceRecordingConfirmationRequiredEnabled = true
    ///....

GetStream Environment

GetStream Chat version: 4.60.0 GetStream Chat frameworks: StreamChat, StreamChatSwiftUI iOS version: Swift version: Xcode version: Device:

Additional context

felipeska avatar Jul 30 '24 15:07 felipeska