From 5e23d676b4a441c0497a30900994f84fafbebc0a Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 27 Jul 2017 23:05:43 +0100 Subject: [PATCH] Remove comments. --- src/components/views/elements/AppTile.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 8832a61a10..fd56dae07c 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -101,7 +101,6 @@ export default React.createClass({ _canUserModify: function() { let canModify = false; const client = MatrixClientPeg.get(); - // const warningMsg = 'User can not modify widgets:'; if (client) { const room = client.getRoom(this.props.room.roomId); const me = client.credentials.userId; @@ -109,14 +108,8 @@ export default React.createClass({ const member = room.getMember(me); if (member && member.membership === "join") { canModify = room.currentState.maySendStateEvent('set_widget', me); - // } else { - // console.warn(warningMsg, 'Not room member'); } - // } else { - // console.warn(warningMsg, 'No roomId or userId'); } - // } else { - // console.warn(warningMsg, 'No Matrix client'); } return canModify; },