mirror of https://github.com/zulip/zulip.git
Fix a bug where the stream list would not get resorted if you unsubscribed and then subscribed from a stream
(imported from commit 9bde14f49d05062478fb5f356c24b29bedcdf3fc)
This commit is contained in:
parent
29413867b7
commit
43794983e7
|
@ -255,6 +255,8 @@ $(function () {
|
||||||
$(document).on('subscription_remove_done.zephyr', function (event) {
|
$(document).on('subscription_remove_done.zephyr', function (event) {
|
||||||
var stream_name = event.sub.name;
|
var stream_name = event.sub.name;
|
||||||
exports.remove_narrow_filter(stream_name, 'stream');
|
exports.remove_narrow_filter(stream_name, 'stream');
|
||||||
|
// We need to make sure we resort if the removed sub gets added again
|
||||||
|
previous_sort_order = undefined;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue