From e34f82a36af11466840e3760321b34e6ab55415c Mon Sep 17 00:00:00 2001 From: Chris Duarte Date: Mon, 17 Jul 2017 12:56:09 -0600 Subject: [PATCH] Android Leaving/Deleting channel redirects to info page of Town Square (#750) --- app/screens/channel_info/channel_info.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/screens/channel_info/channel_info.js b/app/screens/channel_info/channel_info.js index edd70df2a..26e572848 100644 --- a/app/screens/channel_info/channel_info.js +++ b/app/screens/channel_info/channel_info.js @@ -6,6 +6,7 @@ import PropTypes from 'prop-types'; import {injectIntl, intlShape} from 'react-intl'; import { Alert, + Platform, ScrollView, StyleSheet, View @@ -67,7 +68,11 @@ class ChannelInfo extends PureComponent { close = () => { EventEmitter.emit(General.DEFAULT_CHANNEL, ''); - this.props.navigator.pop({animated: true}); + if (Platform.OS === 'android') { + this.props.navigator.dismissModal({animated: true}); + } else { + this.props.navigator.pop({animated: true}); + } }; goToChannelAddMembers = () => {