Add the "add friends view to room creation

This commit is contained in:
N-Pex 2021-04-02 09:28:51 +02:00
parent bad4f2bc61
commit b246a134e2
5 changed files with 204 additions and 39 deletions

View file

@ -65,14 +65,7 @@ export default {
},
methods: {
getRoomJoinRule() {
if (this.room) {
const joinRules = this.room.currentState.getStateEvents(
"m.room.join_rules",
""
);
return joinRules && joinRules.getContent().join_rule;
}
return null;
return this.$matrix.getRoomJoinRule(this.room);
},
updatePermissions() {