From baba2e12e297f4f87aaea5fcf5fb145ec9c03882 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 30 May 2017 11:21:33 +0100
Subject: [PATCH] fix weird indentation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
src/components/structures/RoomView.js | 77 +++++++++++++--------------
1 file changed, 38 insertions(+), 39 deletions(-)
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 2d5cfff8e0..817fe42e94 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -1496,49 +1496,48 @@ module.exports = React.createClass({
const TimelinePanel = sdk.getComponent("structures.TimelinePanel");
if (!this.state.room) {
- if (this.state.roomLoading) {
- return (
-
-
-
- );
+ if (this.state.roomLoading) {
+ return (
+
+
+
+ );
+ } else {
+ var inviterName = undefined;
+ if (this.props.oobData) {
+ inviterName = this.props.oobData.inviterName;
+ }
+ var invitedEmail = undefined;
+ if (this.props.thirdPartyInvite) {
+ invitedEmail = this.props.thirdPartyInvite.invitedEmail;
}
- else {
- var inviterName = undefined;
- if (this.props.oobData) {
- inviterName = this.props.oobData.inviterName;
- }
- var invitedEmail = undefined;
- if (this.props.thirdPartyInvite) {
- invitedEmail = this.props.thirdPartyInvite.invitedEmail;
- }
- // We have no room object for this room, only the ID.
- // We've got to this room by following a link, possibly a third party invite.
- var room_alias = this.props.roomAddress[0] == '#' ? this.props.roomAddress : null;
- return (
-
+ );
+ }
}
var myUserId = MatrixClientPeg.get().credentials.userId;