Fix setting user as offline doesn’t show user offline in the client
This commit is contained in:
parent
156bcdfc5d
commit
aa5d6e0ce3
|
@ -182,6 +182,9 @@ StatusAppThreePanelLayout {
|
|||
profilePubKey: root.rootStore.profileModelInst.profile.pubKey
|
||||
contactsList: root.rootStore.profileModelInst.contacts.list
|
||||
community: root.rootStore.chatsModelInst.communities.activeCommunity
|
||||
currentUserName: Utils.removeStatusEns(root.rootStore.profileModelInst.ens.preferredUsername
|
||||
|| root.rootStore.profileModelInst.profile.username)
|
||||
currentUserOnline: root.rootStore.profileModelInst.profile.sendUserStatus
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@ Item {
|
|||
property string profilePubKey
|
||||
property var messageContextMenu
|
||||
property var community
|
||||
property string currentUserName: ""
|
||||
property bool currentUserOnline: true
|
||||
|
||||
StyledText {
|
||||
id: titleText
|
||||
|
@ -91,7 +93,8 @@ Item {
|
|||
lastSeen: model.lastSeen
|
||||
statusType: model.statusType
|
||||
currentTime: root.currentTime
|
||||
isOnline: model.online
|
||||
isOnline: (model.userName === root.currentUserName) ?
|
||||
root.currentUserOnline : model.online
|
||||
contactsList: root.contactsList
|
||||
profilePubKey: root.profilePubKey
|
||||
messageContextMenu: root.messageContextMenu
|
||||
|
|
Loading…
Reference in New Issue