Export chat (from room info page)

This commit is contained in:
N Pex 2022-05-23 15:19:55 +00:00
parent dd48bedfb5
commit 95555a23e4
16 changed files with 18905 additions and 657 deletions

View file

@ -62,7 +62,16 @@ export default {
return this.room.shouldEncryptForInvitedMembers()
}
return false;
}
},
userCanExportChat() {
// We say that if you can redact events, you are allowed to export chats.
const me = this.room && this.room.getMember(this.$matrix.currentUserId);
let isAdmin =
me && this.room.currentState && this.room.currentState.hasSufficientPowerLevelFor("redact", me.powerLevel);
return isAdmin;
},
},
watch: {
room: {