From 8ad4da54cb79543eb9f724f02d4ea8757cadc059 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 11 Jan 2018 12:04:53 +0000 Subject: [PATCH] Fix missing negation Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/room_settings/RelatedGroupSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/room_settings/RelatedGroupSettings.js b/src/components/views/room_settings/RelatedGroupSettings.js index 4f02dc6c20..65132b9b74 100644 --- a/src/components/views/room_settings/RelatedGroupSettings.js +++ b/src/components/views/room_settings/RelatedGroupSettings.js @@ -58,7 +58,7 @@ module.exports = React.createClass({ const cli = this.context.matrixClient; const room = cli.getRoom(this.props.roomId); 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() {