Files
zulip/static/js
YashRE42 e389129f34 subs: Call filter.fix_stream_params when updating stream name.
Previously the navbar did not live update the stream name correctly.

The correct behaviour was blocked on the `_stream_name` prop on the
filter object. The original purpose for maintaining this prop was
convenience, to reduce calls to `subs`, however, it would become
inconsistent with the value from `subs` on stream rename.

In this commit we add a call to `filter.fix_stream_params` in
`subs.update_stream_name`. This fixes live rerendering in the navbar,
despite the fact that searchbox in the nav (and the filter object via
`filter.operands("stream")[0]`) will still have the old name.

This is a slightly hacky way of masking some of the problems in the
Filter object. However, it should make do until we migrate to a stream
ID based state there.

Fixes: #14728.
2020-06-10 14:25:18 -07:00
..
2020-02-04 12:22:03 -08:00
2019-10-25 13:51:21 -07:00
2020-03-26 21:35:32 -07:00
2020-02-10 15:57:20 -08:00
2020-06-08 23:03:15 -07:00
2019-10-25 13:51:21 -07:00
2020-02-25 15:37:37 -08:00