mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
static/js/stream_events: Modify function update_property.
This commits modifies function `update_property` to update more one stream-sub-property in one event.
This commit is contained in:
committed by
Tim Abbott
parent
78bb9bf37a
commit
a68a06d94f
@@ -32,7 +32,7 @@ function update_stream_pin(sub, value) {
|
||||
sub.pin_to_top = value;
|
||||
}
|
||||
|
||||
exports.update_property = function (stream_id, property, value, rendered_description) {
|
||||
exports.update_property = function (stream_id, property, value, other_values) {
|
||||
var sub = stream_data.get_sub_by_id(stream_id);
|
||||
if (sub === undefined) {
|
||||
// This isn't a stream we know about, so ignore it.
|
||||
@@ -65,7 +65,7 @@ exports.update_property = function (stream_id, property, value, rendered_descrip
|
||||
subs.update_stream_name(sub, value);
|
||||
break;
|
||||
case 'description':
|
||||
subs.update_stream_description(sub, value, rendered_description);
|
||||
subs.update_stream_description(sub, value, other_values.rendered_description);
|
||||
break;
|
||||
case 'email_address':
|
||||
sub.email_address = value;
|
||||
|
||||
Reference in New Issue
Block a user