diff --git a/app/sagas/login.js b/app/sagas/login.js index e1fa2b549..233326991 100644 --- a/app/sagas/login.js +++ b/app/sagas/login.js @@ -168,10 +168,6 @@ const fetchEnterpriseModulesFork = function* fetchEnterpriseModulesFork({ user } } }; -const fetchRoomsFork = function* fetchRoomsFork() { - yield put(roomsRequest()); -}; - const fetchUsersRoles = function* fetchRoomsFork() { const roles = yield Services.getUsersRoles(); if (roles.length) { @@ -184,7 +180,7 @@ const handleLoginSuccess = function* handleLoginSuccess({ user }) { getUserPresence(user.id); const server = yield select(getServer); - yield fork(fetchRoomsFork); + yield put(roomsRequest()); yield fork(fetchPermissionsFork); yield fork(fetchCustomEmojisFork); yield fork(fetchRolesFork);