Minor tweak
This commit is contained in:
parent
4b6e691d8a
commit
04ea01b324
|
@ -438,7 +438,9 @@ class RoomActionsView extends React.Component {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (teamChannels) {
|
if (teamChannels) {
|
||||||
navigation.navigate('SelectListView', { title: 'Leave_Team', teamChannels, teamName: room.name });
|
navigation.navigate('SelectListView', {
|
||||||
|
title: 'Leave_Team', room, teamChannels, teamName: room.name
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
I18n.t('Confirmation'),
|
I18n.t('Confirmation'),
|
||||||
|
|
|
@ -66,6 +66,7 @@ class SelectListView extends React.Component {
|
||||||
const teamChannels = props.route?.params?.teamChannels;
|
const teamChannels = props.route?.params?.teamChannels;
|
||||||
this.title = props.route?.params?.title;
|
this.title = props.route?.params?.title;
|
||||||
this.teamName = props.route?.params?.teamName;
|
this.teamName = props.route?.params?.teamName;
|
||||||
|
this.room = props.route?.params?.room;
|
||||||
this.state = {
|
this.state = {
|
||||||
data: teamChannels,
|
data: teamChannels,
|
||||||
selected: [],
|
selected: [],
|
||||||
|
|
Loading…
Reference in New Issue