Reintroduce RoomSidePane with members list
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user