[Problem/Question]
It’d be great if we could save the message a user is typing, before they send it. Even better if it’s saved per channel.
It would be easy to implement that ourselves if we had access to the underlining text input in ChannelInput (e.g. via onChangeText) but I couldn’t find that anywhere in the SDK.
1 Like
Weirdly enough, we get the text as the user is typing it inside the custom SuggestedMentionList
So we could use a useEffect (or useDebounceEffect so you don’t hit the local storage on every keystroke) to save the draft message as the user types it.
But now the question is: how do you pre-fill the input text to restore the saved draft message.