-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW] Broadcast Channels #9950
[NEW] Broadcast Channels #9950
Conversation
@@ -219,10 +219,10 @@ Template.channelSettingsEditing.onCreated(function() { | |||
isToggle: true, | |||
processing: new ReactiveVar(false), | |||
canView() { | |||
return RocketChat.roomTypes.roomTypes[room.t].allowRoomSettingChange(room, RoomSettingsEnum.READ_ONLY); | |||
return !room.broadcast && RocketChat.roomTypes.roomTypes[room.t].allowRoomSettingChange(room, RoomSettingsEnum.READ_ONLY); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please create a new room type of broadcast
instead of polluting these methods. The room types api was intentionally changed for these style of changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will take a look. @graywolf336
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graywolf336 I think for this case we need a new property instead of a new room type, because we thought cool having the ability to chose within a public or private broadcast room, so this way we're using all validations already implemented.
edit: ok looking at the final code I got you meant @graywolf336 😁 it is still a new room property but is using roomTypes
methods 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like public broadcast channels does not work.
I'll make sure to create an issue to do the changes requested.
@RocketChat/core
closes #9556