From af89faef1186829463c2b43e20f4e8c9e09db598 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Thu, 10 Aug 2017 11:59:07 -0300 Subject: [PATCH] Indicate server on rooms header --- app/views/roomsList.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/roomsList.js b/app/views/roomsList.js index e7f07c369..006343267 100644 --- a/app/views/roomsList.js +++ b/app/views/roomsList.js @@ -59,9 +59,15 @@ export default class RoomsListView extends React.Component { navigation: PropTypes.object.isRequired } - static navigationOptions = () => ({ - title: 'Rooms' - }); + static navigationOptions = () => { + const server = RocketChat.currentServer ? RocketChat.currentServer.replace(/^https?:\/\//, '') : ''; + return { + title: + Channels + {server} + + }; + } constructor(props) { super(props);