From 8f42134d9fa6da65a9dd3fff2103ecbc3ffe4869 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 14 Dec 2016 16:04:20 +0000 Subject: [PATCH] Explain why binding --- src/components/structures/UserSettings.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 6454515c29..43c60c59da 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -461,6 +461,8 @@ module.exports = React.createClass({ let reject = ; if (!this.state.rejectingInvites) { + // bind() the invited rooms so any new invites that may come in as this button is clicked + // don't inadvertently get rejected as well. reject = (