-
Notifications
You must be signed in to change notification settings - Fork 114
Description
What are you trying to achieve?
I want to create a new action and retain only two specific default actions from the sdk. However, the only public method is "returns all default actions" and all the specific action methods are private forcing me to copy the code instead of just using the default action.
For example:
The copyMessageAction is defined as private:
Is there any specific reason why these actions are marked as private?
If possible, how can you achieve this currently?
Currently, to achieve this level of customization, I have to copy the actions from DefaultMessageActions.swift.
What would be the better way?
Set the predefined actions as public in the MessageAction extension file. So will be possible to use the actions without need to copy to internal project.
file:
Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/DefaultMessageActions.swiftLine 234 in af374ba
| private static func copyMessageAction( |
GetStream Environment
GetStream Chat version: 4.69.0
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
iOS version: 18.1
Swift version:
Xcode version:
Device:
Anyway, thanks. π
