[REGRESSION] Invite Links (#2007)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
00a21808ed
commit
1427e530bf
|
@ -30,19 +30,21 @@ const handleInviteLink = function* handleInviteLink({ params, requireLogin = fal
|
||||||
const navigate = function* navigate({ params }) {
|
const navigate = function* navigate({ params }) {
|
||||||
yield put(appStart('inside'));
|
yield put(appStart('inside'));
|
||||||
if (params.path) {
|
if (params.path) {
|
||||||
const room = yield RocketChat.canOpenRoom(params);
|
|
||||||
const [type, name] = params.path.split('/');
|
const [type, name] = params.path.split('/');
|
||||||
if (room) {
|
if (type !== 'invite') {
|
||||||
yield Navigation.navigate('RoomsListView');
|
const room = yield RocketChat.canOpenRoom(params);
|
||||||
Navigation.navigate('RoomView', {
|
if (room) {
|
||||||
name,
|
yield Navigation.navigate('RoomsListView');
|
||||||
t: roomTypes[type],
|
Navigation.navigate('RoomView', {
|
||||||
roomUserId: RocketChat.getUidDirectMessage(room),
|
name,
|
||||||
...room
|
t: roomTypes[type],
|
||||||
});
|
roomUserId: RocketChat.getUidDirectMessage(room),
|
||||||
|
...room
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
yield handleInviteLink({ params });
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
yield handleInviteLink({ params });
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue