mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
streams: Show message retention policy details in subscription_type text.
This commit adds message retention policy details in the subscription_type text below the stream description. We do not show any text when realm-level settings is set to forever and stream-level is set to either forever or realm_default.
This commit is contained in:
@@ -192,6 +192,11 @@ exports.update_stream_post_policy = function (sub, new_value) {
|
||||
stream_ui_updates.update_stream_subscription_type_text(sub);
|
||||
};
|
||||
|
||||
exports.update_message_retention_setting = function (sub, new_value) {
|
||||
stream_data.update_message_retention_setting(sub, new_value);
|
||||
stream_ui_updates.update_stream_subscription_type_text(sub);
|
||||
};
|
||||
|
||||
exports.set_color = function (stream_id, color) {
|
||||
const sub = stream_data.get_sub_by_id(stream_id);
|
||||
stream_edit.set_stream_property(sub, 'color', color);
|
||||
|
||||
Reference in New Issue
Block a user