mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-19 13:31:24 +02:00
Don't show deactivate button for guests
This commit is contained in:
parent
2f0fd6da05
commit
f47ac87775
@ -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…
x
Reference in New Issue
Block a user