Remove extraneous guard on deactivation check
This commit is contained in:
parent
27828a3785
commit
d18d15311f
1 changed files with 1 additions and 5 deletions
|
@ -643,11 +643,7 @@ module.exports = createReactClass({
|
||||||
_calculateOpsPermissions: async function(member) {
|
_calculateOpsPermissions: async function(member) {
|
||||||
let canDeactivate = false;
|
let canDeactivate = false;
|
||||||
if (this.context.matrixClient) {
|
if (this.context.matrixClient) {
|
||||||
try {
|
canDeactivate = await this.context.matrixClient.isSynapseAdministrator();
|
||||||
canDeactivate = await this.context.matrixClient.isSynapseAdministrator();
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultPerms = {
|
const defaultPerms = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue