You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
stream-chat-swiftui/Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/DefaultMessageActions.swift
Line 234 in af374ba
GetStream Environment
GetStream Chat version: 4.69.0
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
iOS version: 18.1
Swift version:
Xcode version:
Device:
Anyway, thanks. 🙏
The text was updated successfully, but these errors were encountered: