stream_settings: Add live update code for can-remove-subscribers-group.

This commit adds code to live update the UI element for
can_remove_subscribers_group setting.
This commit is contained in:
Sahil Batra
2022-12-29 23:06:06 +05:30
committed by Tim Abbott
parent b9801073bd
commit 255dc759b1
6 changed files with 74 additions and 1 deletions

View File

@@ -462,6 +462,10 @@ export function update_message_retention_setting(sub, message_retention_days) {
sub.message_retention_days = message_retention_days;
}
export function update_can_remove_subscribers_group_id(sub, can_remove_subscribers_group_id) {
sub.can_remove_subscribers_group_id = can_remove_subscribers_group_id;
}
export function receives_notifications(stream_id, notification_name) {
const sub = sub_store.get(stream_id);
if (sub === undefined) {