mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08: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() {
|
_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 New Issue
Block a user