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

@@ -56,7 +56,7 @@ exports.update_property = function (stream_id, property, value, other_values) {
subs.update_stream_post_policy(sub, value);
break;
case 'message_retention_days':
stream_data.update_message_retention_setting(sub, value);
subs.update_message_retention_setting(sub, value);
break;
default:
blueslip.warn("Unexpected subscription property type", {property: property,