Remove comments.
This commit is contained in:
parent
51d160e7d6
commit
5e23d676b4
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue