Remove extraneous guard on deactivation check

This commit is contained in:
Travis Ralston 2019-09-13 12:43:47 -06:00
parent 27828a3785
commit d18d15311f

View File

@ -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 = {