Purge room

Work on issue #118.
This commit is contained in:
N-Pex 2021-05-06 13:23:17 +02:00
parent f0ef9e3521
commit b7b28bbc2a
4 changed files with 215 additions and 1 deletions

View file

@ -2,7 +2,8 @@ export default {
data() {
return {
roomJoinRule: null,
userCanChangeJoinRule: false
userCanChangeJoinRule: false,
userCanPurgeRoom: false
}
},
mounted() {
@ -81,9 +82,11 @@ export default {
this.$matrix.matrixClient
);
this.userCanChangeJoinRule = canChangeAccess;
this.userCanPurgeRoom = canChangeAccess; //TODO - need different permissions here?
} else {
this.roomJoinRule = null;
this.userCanChangeJoinRule = false;
this.userCanPurgeRoom = false;
}
},