From 862b66c13929df687b4d22d8b6b4c59bfb238434 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 21 Feb 2024 16:48:09 -0300 Subject: [PATCH] Fix fork used instead of put --- app/sagas/login.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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);