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() { _canUserModify: function() {
let canModify = false; let canModify = false;
const client = MatrixClientPeg.get(); const client = MatrixClientPeg.get();
// const warningMsg = 'User can not modify widgets:';
if (client) { if (client) {
const room = client.getRoom(this.props.room.roomId); const room = client.getRoom(this.props.room.roomId);
const me = client.credentials.userId; const me = client.credentials.userId;
@ -109,14 +108,8 @@ export default React.createClass({
const member = room.getMember(me); const member = room.getMember(me);
if (member && member.membership === "join") { if (member && member.membership === "join") {
canModify = room.currentState.maySendStateEvent('set_widget', me); 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; return canModify;
}, },