From 001bc4294242901e22e421898b789872ae630c09 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Fri, 17 Dec 2021 23:04:00 +0200 Subject: [PATCH] refactor: fix setting user online/offline status --- ui/imports/shared/popups/UserStatusContextMenu.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/imports/shared/popups/UserStatusContextMenu.qml b/ui/imports/shared/popups/UserStatusContextMenu.qml index 01d01706af..1d4de749c3 100644 --- a/ui/imports/shared/popups/UserStatusContextMenu.qml +++ b/ui/imports/shared/popups/UserStatusContextMenu.qml @@ -86,9 +86,9 @@ PopupMenu { Action { text: qsTr("Online") onTriggered: { - if (userProfile.sendUserStatus != true) { - // Not Refactored Yet -// root.store.profileModelInst.profile.setSendUserStatus(true) + //TODO move this to the store as soon as #4274 is merged + if (userProfile.userStatus !== true) { + mainModule.setUserStatus(true); } root.close(); } @@ -101,9 +101,9 @@ PopupMenu { Action { text: qsTr("Offline") onTriggered: { - if (userProfile.sendUserStatus != false) { - // Not Refactored Yet -// root.store.profileModelInst.profile.setSendUserStatus(false) + //TODO move this to the store as soon as #4274 is merged + if (userProfile.userStatus !== false) { + mainModule.setUserStatus(false); } root.close(); }