vue-advanced-chat
vue-advanced-chat copied to clipboard
How to disable room message input?
In some cases, I want to disable the ability to enter a message. For example, a user has blocked the ability to send messages to him.
At the same time, opening the room and reading the history should still be available.
The show-footer attribute allows you to hide the footer completely, but how can you show the user a message with a reason why he can't write a message?
Thank you for the answer :)
I can add a prop to disable the input. But the reason should be managed outside the library. For example you could add a click listener to the input, and show an alert
I think it would be great to be able to display a custom slot when the user has no way to type a message
Indeed that could offer more flexibility. I will add that soon:
- add prop to disable the message input
- custom slot for footer
Also looking forward to this feature
A slot for room-footer
would be great
Another problem is that when typing Esc on the keyboard, the already entered content will be cleared. Sometimes the multilingual input method forgets to switch languages, and Esc will be used to cancel the input of the current few characters, but I don’t want to clear everything. If there is a room-footer
slot, I can implement a similar function by myself
Like the picture above, esc on the github input box will not clear all the string
Any update about this prop to disable the text input? I would like to make some chat rooms read-only under certain conditions.
Any update about this prop to disable the text input?
+1, Every chat needs this functionality
Any update? I know you can toggle the footer on and off but this looks weird, better to grey out the input / disable the input and leave it in place.