Support sendMessageKeyPredicate on Mobile
Please select which package this feature is related to
stream_chat_flutter
Which platforms would this feature impact?
iOS, Android
Is your feature request related to a problem?
I have mobile users with external keyboards who would like to be able to submit messages using a key combination. (Specifically, CMD+Enter on iOS)
It looks like send message key handling was explicitly omitted from mobile in this commit: https://github.com/GetStream/stream-chat-flutter/pull/1222/commits/d3fff37fcdd7adcc1defb63eeeb1d48e422fedbb
Describe the solution that you'd like
I would like to be able to set a sendMessageKeyPredicate and have it be enabled on all platforms. I believe that if omitting that behavior from mobile was desired it should be done when building the predicate.
Describe alternatives that you have considered
No response
Additional context
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
This issue is stale because it has been open for 20 days with no activity.
@crxm can you try out the branch from #1947 and let me know if it works? I don't have a way to test this at the moment. You can pull the git package from the branch and try out the predicates like normal.
We're testing and merging the probable fix - please feel free to open another issue if you find yourself facing this again.
Thanks!