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
|
profilePubKey: root.rootStore.profileModelInst.profile.pubKey
|
||||||
contactsList: root.rootStore.profileModelInst.contacts.list
|
contactsList: root.rootStore.profileModelInst.contacts.list
|
||||||
community: root.rootStore.chatsModelInst.communities.activeCommunity
|
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 string profilePubKey
|
||||||
property var messageContextMenu
|
property var messageContextMenu
|
||||||
property var community
|
property var community
|
||||||
|
property string currentUserName: ""
|
||||||
|
property bool currentUserOnline: true
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: titleText
|
id: titleText
|
||||||
|
@ -91,7 +93,8 @@ Item {
|
||||||
lastSeen: model.lastSeen
|
lastSeen: model.lastSeen
|
||||||
statusType: model.statusType
|
statusType: model.statusType
|
||||||
currentTime: root.currentTime
|
currentTime: root.currentTime
|
||||||
isOnline: model.online
|
isOnline: (model.userName === root.currentUserName) ?
|
||||||
|
root.currentUserOnline : model.online
|
||||||
contactsList: root.contactsList
|
contactsList: root.contactsList
|
||||||
profilePubKey: root.profilePubKey
|
profilePubKey: root.profilePubKey
|
||||||
messageContextMenu: root.messageContextMenu
|
messageContextMenu: root.messageContextMenu
|
||||||
|
|
Loading…
Reference in New Issue