Show online presence orb for unsupported presence

On server where presence is disabled, we can still know whether we're
online or offline for our own account.
This commit is contained in:
miruka 2020-07-10 13:35:34 -04:00
parent 1c3099d440
commit 7f476f8f61

View File

@ -29,8 +29,7 @@ HTile {
mxc: model.avatar_url mxc: model.avatar_url
radius: theme.mainPane.listView.account.avatarRadius radius: theme.mainPane.listView.account.avatarRadius
compact: account.compact compact: account.compact
presence: model.presence
presence: model.presence_support ? model.presence : ""
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
@ -163,7 +162,7 @@ HTile {
} }
contextMenu: AccountContextMenu { contextMenu: AccountContextMenu {
userId: model.id userId: model.id
statusMsg: model.status_msg statusMsg: model.status_msg
presence: presence:
model.presence_support || model.presence === "offline" ? model.presence_support || model.presence === "offline" ?