Export chat (from room info page)
This commit is contained in:
parent
dd48bedfb5
commit
95555a23e4
16 changed files with 18905 additions and 657 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue