From f47ac87775568b41334ccd503869ea7fa81a373c Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 3 Aug 2016 11:34:31 +0100 Subject: [PATCH] Don't show deactivate button for guests --- src/components/structures/UserSettings.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 7fb617d690..89146229fa 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -385,6 +385,9 @@ module.exports = React.createClass({ }, _renderDeactivateAccount: function() { + // We can't deactivate a guest account. + if (MatrixClientPeg.get().isGuest()) return null; + return

Deactivate Account