Create room permissions for read-only / speak
1+. Read Only Channels: Useful for Channel titles like "Full Manual", "Read Me First", "Help", "Quick Start", "Instructions", Company Info. Also for feeds like "Stock Market Ticker", ... These could equally be fly-in tabs, not sure which it best.
Hi everyone, any news about this???
1+, or any way to transform all users in the room to "MUTE"
This functionality is holding back the implementation in my company!!!
@mguspero I'm sorry to hear this. If you would like it built sooner, you are more then welcome to make the changes and open a pull request. We will gladly accept it.
Currently we have other things we are working on. This is an open source project, so we get to things as we have time. :smile:
@mguspero you are also invited to post a bounty on this. This way you may encourage other developers to take this issue and get it merged, while making a few bucks out of it.
@marceloschmidt Sorry if this is a dumb question, I'm new to this. Should bounties appear automatically in the GitHub Issue comments? Doesn't look like it... This issue now has a bounty on it - https://www.bountysource.com/issues/26744641-create-room-permissions-for-read-only-speak
Read-only channel setup should also include:
- an option to mute all the system messages. When the purpose of the channel is a one-way broadcast of messages from the channel owner or admin, its unnecessary to clutter it up with system messages about who has joined the room etc.
- option to overide the Push Notification settings for all users of the channel - if necessary (say for a important system-wide announcements) the channel owner or admin can set default Push Notification to make sure all members will actually receive those messages.
Have any progress been done regarding the readonly channels?
Not yet @lunitic :(
While waiting for Read Only channels to become officially supported, is it possible to set up a default channel, then create a bot or some other API implementation that can auto-mute every new user that registers in the chat service and is enrolled into that channel? That would effectively create a read-only channel that all users would be subscribed to, right?
@RichardFoxworthy that sounds like a very plausible solution. We have a way for the bot to call methods on the server. So you would just need to give the bot user the privileges required to mute.
Also possibly would need the bot to be able to subscribe to the channels user list so it can see when people are added. A functionality we don't currently have. But wouldn't be too complicated to add.
Hey @geekgonecrazy that sounds hopeful - could you point me toward any doc or example of how to get a bot to call methods on server?
I already have a Hubot script that can detect when a new user joins the channel, and send them a welcome message.
I am thinking I could extend this functionality to also /mute each new user in the default 'Announcements' channel that I want to support.
@RichardFoxworthy You can call methods on Rocket.Chat from the bot like this:
robot.adapter.callMethod('MethodName', args...)
so something like this:
robot.adapter.callMethod('muteUserInRoom', { rid: roomId, username: username });
I think we can break the problem to 2 steps to achieve the intended result.
- Hide the Message Composer for all users except the owner. - This will immediately achieve the intended effect and should be easy to implement in code as well with a small flag in channels & priavte groups. (This is definitely security by obscurity filler to keep most of the crowd from posting messages until we get what we want)
- Disable posting message in the channel by all users except the owner. - This should be built subsequently with proper checks and permissions systems to block all hackers from posting it.
@insidesmart sounds about right. After adding the permission it would be a matter of essentially doing exactly what you just said :+1:
Hey, just a ping that we (@4thparty) are addressing this functionality by building an announcements bot for our Rocket.Chat instance. It's not exactly as described in this issue, but will allow us to send one-way messages via a bot to target users/groups. Sending DMs stops users from replying on mass and polluting public channels. We'll control access to the bot using a privileged room where user can tell it to send specific messages, but outside that room it won't work.
I've created a hubot receiver middleware that partially solves the problem by ignoring any direct message replies to the bot. https://github.com/timkinnane/hubot-rocketchat-ignore-direct Will update again when the rest of it's built.
Hi everybody, do you have any news for this??? The one way DM for team leaders to users or read only rooms ?? Thanks & Regards!
Hey, I've tested and responded to the PR from @alexbrazier. My team was working on a similar solution (we actually commissioned a remote dev) but our approach was quite different. I'd like to get some feedback from core team because if Alex's PR/approach is accepted, we may be wasting our time, or possibly we will work on improving his approach instead of our own.
Our intended solution was to provide a package that would allow:
- Per-room config to mute all users of given role/s, e.g.
userandlivechat-user- to avoid muting bots and admins. - Per-room config to disable each notification type.
So you could achieve the result provided by Alex but with two settings instead of one, selecting the roles that cannot post to a room, then selecting to suppress user muted notifications. That would also allow other configurations, like suppressing user joined / left to be optional.
That would also fix #3641, #3539, #3498, #3418 and partially #2043.
Will share our feature branch as soon as possible.
@RocketChat/core How should we implement this?