Fix fork used instead of put
This commit is contained in:
parent
b3d063e0c4
commit
862b66c139
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue