Skip to content

Add option to block chat input for certain channels (e.g. Announcement channels) #6

@SolbiatiAlessandro

Description

@SolbiatiAlessandro

We don't have yet a permission system, but would be nice to have a hard coded feature that for chats that belong to the category "information" the composer (e.g. text input to write messages) is blocked and displays

You do not have permission to send messages in this channel.

The composer is mounted here

def mount(_params, %{"current_user" => current_user}, socket) do

And implemented with a <%= form_for here
<%= form_for @message, "#", [phx_change: :typing, phx_submit: :message], fn _f -> %>


I will be really happy provide extensive Elixir support for anyone that takes this up, even if you are not yet proficient with the Tech Stack. You can start by reading the docs at https://dixord.herokuapp.com/api-reference.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions