diff --git a/app/stacks/InsideStack.js b/app/stacks/InsideStack.js
index e29c39dd..8a0f2e91 100644
--- a/app/stacks/InsideStack.js
+++ b/app/stacks/InsideStack.js
@@ -112,7 +112,6 @@ const ChatsStackNavigator = () => {
{
({
- title: I18n.t(route.params?.name)
- });
-
static propTypes = {
user: PropTypes.object,
baseUrl: PropTypes.string,
@@ -39,6 +35,7 @@ class MessagesView extends React.Component {
messages: [],
fileLoading: true
};
+ this.setHeader();
this.rid = props.route.params?.rid;
this.t = props.route.params?.t;
this.content = this.defineMessagesViewContent(props.route.params?.name);
@@ -65,10 +62,16 @@ class MessagesView extends React.Component {
if (fileLoading !== nextState.fileLoading) {
return true;
}
-
return false;
}
+ setHeader = () => {
+ const { route, navigation } = this.props;
+ navigation.setOptions({
+ title: I18n.t(route.params?.name)
+ });
+ }
+
navToRoomInfo = (navParam) => {
const { navigation, user } = this.props;
if (navParam.rid === user.id) {