You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Log the error when failing to removie room from group
This commit is contained in:
@@ -67,9 +67,11 @@ const GroupRoomTile = React.createClass({
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
const groupId = this.props.groupId;
|
const groupId = this.props.groupId;
|
||||||
const roomName = this.state.name;
|
const roomName = this.state.name;
|
||||||
|
const roomId = this.props.groupRoom.roomId;
|
||||||
this.context.matrixClient
|
this.context.matrixClient
|
||||||
.removeRoomFromGroup(groupId, this.props.groupRoom.roomId)
|
.removeRoomFromGroup(groupId, roomId)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
console.error(`Error whilst removing ${roomId} from ${groupId}`, err);
|
||||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
Modal.createTrackedDialog('Failed to remove room from group', '', ErrorDialog, {
|
Modal.createTrackedDialog('Failed to remove room from group', '', ErrorDialog, {
|
||||||
title: _t("Failed to remove room from group"),
|
title: _t("Failed to remove room from group"),
|
||||||
|
|||||||
Reference in New Issue
Block a user