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
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
The composer is mounted here
dixord/lib/dixord_web/live/chat_live_view.ex
Line 118 in b9e4146
And implemented with a
<%= form_forheredixord/lib/dixord_web/templates/page/index.html.leex
Line 85 in b9e4146
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