Skip to content
Snippets Groups Projects
Commit 09995f27 authored by Nikola Brković's avatar Nikola Brković
Browse files

Log out when hard logout button is triggered

parent e93ce7a0
Branches servant
No related tags found
No related merge requests found
Pipeline #820 passed
......@@ -179,6 +179,7 @@ Kirigami.ApplicationWindow {
}
function hardLogout() {
matrixSdk.logout();
}
Component.onCompleted: {
......
......@@ -408,3 +408,8 @@ bool MatrixSdk::startNewSession()
emplace(std::nullopt);
return true;
}
void MatrixSdk::logout() const {
auto ctx = m_d->sdk.context();
ctx.dispatch(LogoutAction{});
}
\ No newline at end of file
......@@ -98,4 +98,7 @@ public Q_SLOTS:
* @return A list of session names in the form of <userid>/<deviceid> .
*/
QStringList allSessions() const;
/* Perform hard-logout */
void logout() const;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment