Fix fork used instead of put

This commit is contained in:
Diego Mello 2024-02-21 16:48:09 -03:00
parent b3d063e0c4
commit 862b66c139
1 changed files with 1 additions and 5 deletions

View File

@ -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);