From 8f14cbe25a7e7c8cd0e517648deb4646bec57ea6 Mon Sep 17 00:00:00 2001 From: Prateek Jain Date: Tue, 28 Jan 2020 18:58:25 +0530 Subject: [PATCH] [FIX] Header title of RoomInfoView (#1553) --- app/i18n/locales/en.js | 1 + app/views/RoomInfoView/index.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/i18n/locales/en.js b/app/i18n/locales/en.js index 630b613c2..97b546534 100644 --- a/app/i18n/locales/en.js +++ b/app/i18n/locales/en.js @@ -428,6 +428,7 @@ export default { Upload_file_question_mark: 'Upload file?', Users: 'Users', User_added_by: 'User {{userAdded}} added by {{userBy}}', + User_Info: 'User Info', User_has_been_key: 'User has been {{key}}!', User_is_no_longer_role_by_: '{{user}} is no longer {{role}} by {{userBy}}', User_muted_by: 'User {{userMuted}} muted by {{userBy}}', diff --git a/app/views/RoomInfoView/index.js b/app/views/RoomInfoView/index.js index f7c2cbd4e..f19fdfb72 100644 --- a/app/views/RoomInfoView/index.js +++ b/app/views/RoomInfoView/index.js @@ -37,8 +37,9 @@ class RoomInfoView extends React.Component { static navigationOptions = ({ navigation, screenProps }) => { const showEdit = navigation.getParam('showEdit'); const rid = navigation.getParam('rid'); + const t = navigation.getParam('t'); return { - title: I18n.t('Room_Info'), + title: t === 'd' ? I18n.t('User_Info') : I18n.t('Room_Info'), ...themedHeader(screenProps.theme), headerRight: showEdit ? (