Fix setting user as offline doesn’t show user offline in the client

This commit is contained in:
Alexandra Betouni 2021-10-30 00:15:33 +03:00 committed by Iuri Matias
parent 156bcdfc5d
commit aa5d6e0ce3
2 changed files with 7 additions and 1 deletions

View File

@ -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
}
}

View File

@ -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