Log the error when failing to removie room from group
This commit is contained in:
parent
3e34a460a4
commit
0116c4b486
1 changed files with 3 additions and 1 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue