Readonly Room

Add readonly property to a room and use it to decide whether to show chatbar, replies and edits

BUG: 479590
This commit is contained in:
James Graham
2024-01-12 01:59:09 +00:00
parent c1d122a717
commit ec4aa73e37
4 changed files with 18 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ Kirigami.Page {
footer: Loader {
id: chatBarLoader
active: timelineViewLoader.active && root.currentRoom.canSendEvent("m.room.message") // TODO make this update in real time
active: timelineViewLoader.active && !root.currentRoom.readOnly
sourceComponent: ChatBar {
id: chatBar
width: parent.width