From 8349cb43772d1bc630027de9c880b63f723a47bf Mon Sep 17 00:00:00 2001 From: nephros Date: Wed, 15 Dec 2021 12:02:32 +0100 Subject: [PATCH] fixup! fixup! Settings: add login info and logout to Profile --- qml/components/settingsPage/SettingsUserProfile.qml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/qml/components/settingsPage/SettingsUserProfile.qml b/qml/components/settingsPage/SettingsUserProfile.qml index c5414e0..cfc0066 100644 --- a/qml/components/settingsPage/SettingsUserProfile.qml +++ b/qml/components/settingsPage/SettingsUserProfile.qml @@ -35,24 +35,13 @@ AccordionItem { readonly property var userInformation: tdLibWrapper.getUserInformation() property bool uploadInProgress: false - property variant activeSessions; - property bool loaded : false; Component.onCompleted: { tdLibWrapper.getUserProfilePhotos(userInformation.id, 100, 0); - if (!activeSessions) { - tdLibWrapper.getActiveSessions(); - } else { - accordionContent.loaded = true; - } } Connections { target: tdLibWrapper - onSessionsReceived: { - accordionContent.activeSessions = sessions; - accordionContent.loaded = true; - } onOwnUserUpdated: { firstNameEditArea.text = userInformation.first_name; lastNameEditArea.text = userInformation.last_name;