Skip to content

How to disable room message input?  #376

@catthecreator

Description

@catthecreator

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 :)

Activity

antoine92190

antoine92190 commented on Oct 24, 2022

@antoine92190
Collaborator

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

catthecreator

catthecreator commented on Oct 28, 2022

@catthecreator
Author

I think it would be great to be able to display a custom slot when the user has no way to type a message

antoine92190

antoine92190 commented on Oct 28, 2022

@antoine92190
Collaborator

Indeed that could offer more flexibility. I will add that soon:

  • add prop to disable the message input
  • custom slot for footer
palewithout

palewithout commented on Apr 11, 2023

@palewithout

Also looking forward to this feature

arufonsekun

arufonsekun commented on Apr 19, 2023

@arufonsekun

A slot for room-footer would be great

palewithout

palewithout commented on May 15, 2023

@palewithout

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
image
image
Like the picture above, esc on the github input box will not clear all the string

despatates

despatates commented on Aug 17, 2023

@despatates

Any update about this prop to disable the text input?
I would like to make some chat rooms read-only under certain conditions.

seyfer

seyfer commented on Sep 12, 2023

@seyfer

Any update about this prop to disable the text input?

+1, Every chat needs this functionality

vesper8

vesper8 commented on Nov 23, 2023

@vesper8

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriorityTo be fixed in priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @vesper8@seyfer@despatates@palewithout@antoine92190

        Issue actions

          How to disable room message input? · Issue #376 · advanced-chat/vue-advanced-chat