From e270c0febe6a73b99d643937da345b57eb6d6ade Mon Sep 17 00:00:00 2001 From: f0x Date: Fri, 19 Apr 2019 16:29:50 +0200 Subject: [PATCH] display room name --- app.js | 2 +- components/info.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 4ad33a2..a6b791c 100644 --- a/app.js +++ b/app.js @@ -88,7 +88,7 @@ let App = create({ <> {this.setState({roomId: roomId})}}/>
- +
diff --git a/components/info.js b/components/info.js index d33151a..c2c26ea 100644 --- a/components/info.js +++ b/components/info.js @@ -7,7 +7,11 @@ const Promise = require('bluebird') let info = create({ displayName: "Info", render: function() { - return
Room Title
+ let title = "" + if (this.props.room != undefined) { + title = this.props.room.name + } + return
{title}
} })