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) {
|
_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…
Reference in New Issue