Don't show deactivate button for guests
This commit is contained in:
parent
2f0fd6da05
commit
f47ac87775
1 changed files with 3 additions and 0 deletions
|
@ -385,6 +385,9 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
_renderDeactivateAccount: function() {
|
||||
// We can't deactivate a guest account.
|
||||
if (MatrixClientPeg.get().isGuest()) return null;
|
||||
|
||||
return <div>
|
||||
<h3>Deactivate Account</h3>
|
||||
<div className="mx_UserSettings_section">
|
||||
|
|
Loading…
Reference in a new issue