From 2428eb12af651db687a5afed4804dcd258a9df3d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 Jun 2018 11:37:06 +0100 Subject: [PATCH] delint ChatCreateOrReuseDialog Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../views/dialogs/ChatCreateOrReuseDialog.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/views/dialogs/ChatCreateOrReuseDialog.js b/src/components/views/dialogs/ChatCreateOrReuseDialog.js index 9228e59280..b7cf0f5a6e 100644 --- a/src/components/views/dialogs/ChatCreateOrReuseDialog.js +++ b/src/components/views/dialogs/ChatCreateOrReuseDialog.js @@ -1,5 +1,6 @@ /* Copyright 2017 Vector Creations Ltd +Copyright 2018 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -28,6 +29,7 @@ export default class ChatCreateOrReuseDialog extends React.Component { constructor(props) { super(props); + this.onFinished = this.onFinished.bind(this); this.onRoomTileClick = this.onRoomTileClick.bind(this); this.state = { @@ -53,10 +55,7 @@ export default class ChatCreateOrReuseDialog extends React.Component { const room = client.getRoom(roomId); if (room) { const me = room.getMember(client.credentials.userId); - const highlight = ( - room.getUnreadNotificationCount('highlight') > 0 || - me.membership == "invite" - ); + const highlight = room.getUnreadNotificationCount('highlight') > 0 || me.membership === "invite"; tiles.push( , ); @@ -110,6 +109,10 @@ export default class ChatCreateOrReuseDialog extends React.Component { this.props.onExistingRoomSelected(roomId); } + onFinished() { + this.props.onFinished(false); + } + render() { let title = ''; let content = null; @@ -177,7 +180,7 @@ export default class ChatCreateOrReuseDialog extends React.Component { const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog'); return (