Commit 3ae733a7 authored by Alice Wyan's avatar Alice Wyan

Force websocket reconnection when the logged in user changes

parent 9497b01f
......@@ -458,7 +458,7 @@ describe('WidgetController', function () {
$rootScope.$emit('sidebarOpened');
fakeStreamer.connect.reset();
$rootScope.$emit(events.USER_CHANGED);
assert.called(fakeStreamer.connect);
assert.called(fakeStreamer.reconnect);
});
});
});
......
......@@ -308,7 +308,7 @@ module.exports = function WidgetController(
$rootScope.$on(events.USER_CHANGED, function () {
if (sidebarOpen) {
streamer.connect();
streamer.reconnect();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment