From 43794983e79cc4e9cbeb3e4617d2f4ec98755523 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Mon, 13 May 2013 11:23:07 -0400 Subject: [PATCH] Fix a bug where the stream list would not get resorted if you unsubscribed and then subscribed from a stream (imported from commit 9bde14f49d05062478fb5f356c24b29bedcdf3fc) --- zephyr/static/js/stream_list.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/static/js/stream_list.js b/zephyr/static/js/stream_list.js index 898e4c9d3c..c1d64e9c57 100644 --- a/zephyr/static/js/stream_list.js +++ b/zephyr/static/js/stream_list.js @@ -255,6 +255,8 @@ $(function () { $(document).on('subscription_remove_done.zephyr', function (event) { var stream_name = event.sub.name; 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; }); });