Resetting websocket connection after login in via privateId.
@@ -96,6 +96,9 @@ function loadingWithAnonymousAccount(dispatch, getState, privateId) {
function loginSuccess(username, loginStatus, dispatch, getState) {
+ // reset websocket to make sure it's using the logged-in session
+ dispatch(actionCreators.reconnect());
+
/* quickly dispatch log-in status, even before loading data, to
* allow making correct access-control decisions
*/
