mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Clear removed_streams when we repopulate the subscriptions table
(imported from commit e9f90425b097f54188e4085828a3fed4c4885954)
This commit is contained in:
parent
a1b017eea6
commit
f5e25d2e64
@ -168,6 +168,7 @@ exports.fetch = function () {
|
||||
timeout: 10*1000,
|
||||
success: function (data) {
|
||||
$('#subscriptions_table tr').remove();
|
||||
removed_streams = {};
|
||||
if (data) {
|
||||
var subscriptions = [];
|
||||
$.each(data.subscriptions, function (index, data) {
|
||||
|
||||
@ -509,6 +509,8 @@ $(function () {
|
||||
hashchange.changehash(browser_url);
|
||||
});
|
||||
|
||||
// TODO: We really want to show a spinner while we're fetching
|
||||
// the subs
|
||||
$('#sidebar a[href="#subscriptions"]').on('show', subs.fetch);
|
||||
|
||||
var settings_status = $('#settings-status');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user