Minor tweak

This commit is contained in:
Gerzon Z 2021-05-06 09:05:11 -04:00
parent 4b6e691d8a
commit 04ea01b324
2 changed files with 4 additions and 1 deletions

View File

@ -438,7 +438,9 @@ class RoomActionsView extends React.Component {
);
if (teamChannels) {
navigation.navigate('SelectListView', { title: 'Leave_Team', teamChannels, teamName: room.name });
navigation.navigate('SelectListView', {
title: 'Leave_Team', room, teamChannels, teamName: room.name
});
} else {
Alert.alert(
I18n.t('Confirmation'),

View File

@ -66,6 +66,7 @@ class SelectListView extends React.Component {
const teamChannels = props.route?.params?.teamChannels;
this.title = props.route?.params?.title;
this.teamName = props.route?.params?.teamName;
this.room = props.route?.params?.room;
this.state = {
data: teamChannels,
selected: [],