1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Remove comments.

This commit is contained in:
Richard Lewis
2017-07-27 23:05:43 +01:00
parent 51d160e7d6
commit 5e23d676b4

View File

@@ -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;
},