How to disable user interaction until specific message #133
damon-v2
announced in
1. Chatting in a channel
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
GroupChannelViewController
Guide & Code Snippets
Step 1. Create your custom Channel View Controller class that subclasses [
SBUGroupChannelViewController
]Step 2. Override the view controller methods.
On this page, we have customized an input to be active when two or more messages are received.
The
setInputState(:)
method can only set the input state on the client.Step 3. Present your view controller.
Result
You can see that the customized screen disables input until the second message is displayed.
You will see that the message field is activated when the conditions are fulfilled.
Reference Links
Some helpful resources related to this topic.
Beta Was this translation helpful? Give feedback.
All reactions