keep it the old way

This commit is contained in:
GleidsonDaniel 2023-03-02 15:03:59 -03:00
parent fe73819099
commit 2c8fda145c
1 changed files with 4 additions and 6 deletions

View File

@ -1088,6 +1088,7 @@ class RoomActionsView extends React.Component<IRoomActionsViewProps, IRoomAction
<List.Item
title='Teams'
onPress={() => {
logEvent(events.ROOM_GO_TEAM_CHANNELS);
if (isMasterDetail) {
// @ts-ignore TODO: find a way to make this work - OLD Diego :)
navigation.navigate('ModalStackNavigator', {
@ -1095,12 +1096,9 @@ class RoomActionsView extends React.Component<IRoomActionsViewProps, IRoomAction
params: { teamId, joined }
});
} else {
this.onPressTouchable({
route: 'TeamChannelsView',
params: {
teamId,
joined
}
navigation.navigate('TeamChannelsView', {
teamId,
joined
});
}
}}