mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Remove extraneous guard on deactivation check
This commit is contained in:
parent
27828a3785
commit
d18d15311f
@ -643,11 +643,7 @@ module.exports = createReactClass({
|
||||
_calculateOpsPermissions: async function(member) {
|
||||
let canDeactivate = false;
|
||||
if (this.context.matrixClient) {
|
||||
try {
|
||||
canDeactivate = await this.context.matrixClient.isSynapseAdministrator();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
canDeactivate = await this.context.matrixClient.isSynapseAdministrator();
|
||||
}
|
||||
|
||||
const defaultPerms = {
|
||||
|
Loading…
Reference in New Issue
Block a user