mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
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() {
|
_renderDeactivateAccount: function() {
|
||||||
|
// We can't deactivate a guest account.
|
||||||
|
if (MatrixClientPeg.get().isGuest()) return null;
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
<h3>Deactivate Account</h3>
|
<h3>Deactivate Account</h3>
|
||||||
<div className="mx_UserSettings_section">
|
<div className="mx_UserSettings_section">
|
||||||
|
|
Loading…
Reference in a new issue