Reintroduce RoomSidePane with members list

This commit is contained in:
miruka
2019-07-07 05:15:18 -04:00
parent 735707bade
commit ea600a1450
4 changed files with 67 additions and 66 deletions

View File

@@ -7,7 +7,7 @@ MouseArea {
width: memberList.width
height: childrenRect.height
property var memberInfo: Backend.users.get(model.userId)
property var memberInfo: users.getUser(model.userId)
HRowLayout {
width: parent.width
@@ -15,7 +15,7 @@ MouseArea {
HUserAvatar {
id: avatar
userId: memberInfo.userId
userId: model.userId
}
HColumnLayout {

View File

@@ -17,7 +17,7 @@ HColumnLayout {
Layout.leftMargin: normalSpacing
Layout.rightMargin: normalSpacing
model: chatPage.roomInfo.sortedMembers
model: chatPage.roomInfo.members
delegate: MemberDelegate {}
Layout.fillWidth: true
@@ -32,14 +32,14 @@ HColumnLayout {
// Without this, if the user types in the field, changes of room, then
// comes back, the field will be empty but the filter still applied.
Component.onCompleted:
text = Backend.clients.get(chatPage.userId).getMemberFilter(
chatPage.category, chatPage.roomId
)
//Component.onCompleted:
//text = Backend.clients.get(chatPage.userId).getMemberFilter(
//chatPage.category, chatPage.roomId
//)
onTextChanged: Backend.clients.get(chatPage.userId).setMemberFilter(
chatPage.category, chatPage.roomId, text
)
//onTextChanged: Backend.clients.get(chatPage.userId).setMemberFilter(
//chatPage.category, chatPage.roomId, text
//)
Layout.fillWidth: true
Layout.preferredHeight: theme.bottomElementsHeight