Handle room invites

Add them to the roomList, and have separate sections:
Invites and Rooms.
This commit is contained in:
miruka
2019-04-21 06:56:59 -04:00
parent 21ca38117d
commit 2c5dc7bd4f
6 changed files with 35 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
import QtQuick 2.7
import "../base" as Base
Base.HLabel {
width: roomList.width
height: text.height
// topPadding is provided by the roomList spacing
bottomPadding: roomList.spacing
text: section
elide: Text.ElideRight
maximumLineCount: 1
font.bold: true
}

View File

@@ -18,4 +18,7 @@ ListView {
spacing: 8
model: Backend.models.rooms.get(forUserId)
delegate: RoomDelegate {}
section.property: "category"
section.delegate: RoomCategoryDelegate {}
}