Merge pull request #1696 from matrix-org/t3chguy/fix_missing_negation

Fix missing negation
This commit is contained in:
Matthew Hodgson 2018-01-11 12:06:48 +00:00 committed by GitHub
commit e187ec6a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ module.exports = React.createClass({
const cli = this.context.matrixClient; const cli = this.context.matrixClient;
const room = cli.getRoom(this.props.roomId); const room = cli.getRoom(this.props.roomId);
if (!room.currentState.maySendStateEvent('m.room.related_groups', cli.getUserId())) return false; if (!room.currentState.maySendStateEvent('m.room.related_groups', cli.getUserId())) return false;
return isEqual(this.getInitialGroupList(), this.state.newGroupsList); return !isEqual(this.getInitialGroupList(), this.state.newGroupsList);
}, },
saveSettings: function() { saveSettings: function() {