Skip to content

access to the isVoiceRecordingConfirmationRequiredEnabled flag #564

@felipeska

Description

@felipeska

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions