You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Remove extraneous guard on deactivation check
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user