Simplify room creation and improve "room welcome header" for new rooms.
Issue #127.
This commit is contained in:
parent
11c09cd767
commit
6ca7a2040d
5 changed files with 112 additions and 25 deletions
|
|
@ -440,6 +440,17 @@ export default {
|
|||
return null;
|
||||
},
|
||||
|
||||
getRoomHistoryVisibility(room) {
|
||||
if (room) {
|
||||
const historyVisibility = room.currentState.getStateEvents(
|
||||
"m.room.history_visibility",
|
||||
""
|
||||
);
|
||||
return historyVisibility && historyVisibility.getContent().history_visibility;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
leaveRoom(roomId) {
|
||||
return this.matrixClient.leave(roomId, undefined)
|
||||
.then(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue