Hide prev status msg for accounts w/out presence

This commit is contained in:
miruka 2021-04-17 08:34:33 -04:00
parent d4b9fc60a4
commit c4a0e73e19

View File

@ -115,8 +115,10 @@ HMenu {
id: statusRepeater
// Separate property instead of setting model directly so that we can
// manipulate this as a JS list, not a QQmlModel
property var items: window.getState(this, "items", [])
// manipulate this as a JS list, not a QQmlModel.
// If server doesn't support presence, don't show status.
property var items:
presence ? window.getState(this, "items", []) : []
readonly property string saveName: "lastStatus"
readonly property string saveId: "ALL"