fix(@chat/members): display alias if displayName is empty
This commit is contained in:
parent
655af35958
commit
7fad1ed5db
|
@ -74,7 +74,7 @@ Item {
|
|||
delegate: StatusMemberListItem {
|
||||
width: ListView.view.width
|
||||
nickName: model.localNickname
|
||||
userName: model.displayName
|
||||
userName: model.displayName !== "" ? model.displayName : model.alias
|
||||
pubKey: Utils.getCompressedPk(model.pubKey)
|
||||
isContact: model.isContact
|
||||
isVerified: model.isVerified
|
||||
|
|
|
@ -57,7 +57,7 @@ MembersSelectorBase {
|
|||
readonly property string _pubKey: model.pubKey
|
||||
|
||||
height: ListView.view.height
|
||||
text: model.displayName
|
||||
text: model.displayName !== "" ? model.displayName : model.alias
|
||||
isReadonly: {
|
||||
if (model.isAdmin) return true
|
||||
if (root.chatContentModule.amIChatAdmin()) return false
|
||||
|
|
Loading…
Reference in New Issue