mirror of https://github.com/vector-im/riot-web
Remove extraneous guard on deactivation check
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