diff --git a/app/containers/MessageActions/index.js b/app/containers/MessageActions/index.js index 7846e1d7..a6d2a966 100644 --- a/app/containers/MessageActions/index.js +++ b/app/containers/MessageActions/index.js @@ -201,7 +201,13 @@ const MessageActions = React.memo(forwardRef(({ hideActionSheet(); }; - const handleReadReceipt = message => Navigation.navigate('ReadReceiptsView', { messageId: message.id }); + const handleReadReceipt = (message) => { + if (isMasterDetail) { + Navigation.navigate('ModalStackNavigator', { screen: 'ReadReceiptsView', params: { messageId: message.id } }); + } else { + Navigation.navigate('ReadReceiptsView', { messageId: message.id }); + } + }; const handleToggleTranslation = async(message) => { try { diff --git a/app/stacks/MasterDetailStack/index.js b/app/stacks/MasterDetailStack/index.js index 0b27d89d..93edefba 100644 --- a/app/stacks/MasterDetailStack/index.js +++ b/app/stacks/MasterDetailStack/index.js @@ -189,7 +189,7 @@ const ModalStackNavigator = React.memo(({ navigation }) => { ReadReceiptsView.navigationOptions({ ...props, isMasterDetail: true })} /> { + const options = { + title: I18n.t('Read_Receipt') + }; + if (isMasterDetail) { + options.headerLeft = () => ; + } + return options; } static propTypes = {