Rename users.getUser to users.find
This commit is contained in:
@@ -6,7 +6,7 @@ Banner {
|
||||
property string inviterId: ""
|
||||
|
||||
readonly property var inviterInfo:
|
||||
inviterId ? users.getUser(inviterId) : null
|
||||
inviterId ? users.find(inviterId) : null
|
||||
|
||||
color: theme.chat.inviteBanner.background
|
||||
|
||||
|
@@ -3,13 +3,13 @@ import "../../Base"
|
||||
|
||||
Banner {
|
||||
property string userId: ""
|
||||
readonly property var userInfo: users.getUser(userId)
|
||||
readonly property var userInfo: users.find(userId)
|
||||
|
||||
color: theme.chat.leftBanner.background
|
||||
|
||||
// TODO: avatar func auto
|
||||
avatar.userId: userId
|
||||
avatar.imageUrl: users.getUser(userId).avatarUrl
|
||||
avatar.imageUrl: users.find(userId).avatarUrl
|
||||
labelText: qsTr("You are not part of this room anymore.")
|
||||
|
||||
buttonModel: [
|
||||
|
@@ -13,7 +13,7 @@ HColumnLayout {
|
||||
readonly property string category: roomInfo.category
|
||||
readonly property string roomId: roomInfo.roomId
|
||||
|
||||
readonly property var senderInfo: users.getUser(userId)
|
||||
readonly property var senderInfo: users.find(userId)
|
||||
|
||||
readonly property bool hasUnknownDevices: false
|
||||
//category == "Rooms" ?
|
||||
|
@@ -7,7 +7,7 @@ MouseArea {
|
||||
width: memberList.width
|
||||
height: childrenRect.height
|
||||
|
||||
property var memberInfo: users.getUser(model.userId)
|
||||
property var memberInfo: users.find(model.userId)
|
||||
|
||||
HRowLayout {
|
||||
width: parent.width
|
||||
|
@@ -24,7 +24,7 @@ HColumnLayout {
|
||||
|
||||
proxyRoles: ExpressionRole {
|
||||
name: "displayName"
|
||||
expression: users.getUser(userId).displayName || userId
|
||||
expression: users.find(userId).displayName || userId
|
||||
}
|
||||
|
||||
sorters: StringSorter {
|
||||
|
@@ -22,7 +22,7 @@ Column {
|
||||
onReloadPreviousItem: previousItem = getPreviousItem()
|
||||
|
||||
property var senderInfo: null
|
||||
Component.onCompleted: senderInfo = users.getUser(model.senderId)
|
||||
Component.onCompleted: senderInfo = users.find(model.senderId)
|
||||
|
||||
readonly property bool isOwn: chatPage.userId === model.senderId
|
||||
|
||||
|
Reference in New Issue
Block a user