From 0116c4b48681a9ba90348010d7691befcdbcf386 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 3 Oct 2017 10:14:08 +0100 Subject: [PATCH] Log the error when failing to removie room from group --- src/components/views/groups/GroupRoomTile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/groups/GroupRoomTile.js b/src/components/views/groups/GroupRoomTile.js index eeba9d6d8a..ea8b5b9993 100644 --- a/src/components/views/groups/GroupRoomTile.js +++ b/src/components/views/groups/GroupRoomTile.js @@ -67,9 +67,11 @@ const GroupRoomTile = React.createClass({ e.stopPropagation(); const groupId = this.props.groupId; const roomName = this.state.name; + const roomId = this.props.groupRoom.roomId; this.context.matrixClient - .removeRoomFromGroup(groupId, this.props.groupRoom.roomId) + .removeRoomFromGroup(groupId, roomId) .catch((err) => { + console.error(`Error whilst removing ${roomId} from ${groupId}`, err); const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createTrackedDialog('Failed to remove room from group', '', ErrorDialog, { title: _t("Failed to remove room from group"),