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:
sahil839
2020-06-16 17:29:02 +05:30
committed by Tim Abbott
parent d9b7228444
commit 821e25ffb0
7 changed files with 36 additions and 3 deletions

View File

@@ -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);