Nheko-Reborn / nheko

Desktop client for Matrix using Qt and C++20.
https://nheko-reborn.github.io/
GNU General Public License v3.0
1.97k stars 205 forks source link

Support Soft-Logout #360

Open deepbluev7 opened 3 years ago

deepbluev7 commented 3 years ago

Is your feature request related to a problem? Please describe. If the ToS change or for other reasons, a client may get soft-logged out. In those cases the user can sign in again and reuse the same device and crypto keys.

Describe the solution you'd like We should support not deleting device keys on soft logout and prompt the user to login again.

Additional context https://matrix.org/docs/spec/client_server/latest#soft-logout https://github.com/matrix-org/matrix-doc/blob/travis/msc/terms-api/proposals/1692-terms-api.md

Cadair commented 3 years ago

If/when you implement this you should also expose it as a clear cache button ;)

deepbluev7 commented 3 years ago

Well, this is kinda different. Soft logout doesn't really clear your cache, it just forces you to revalidate your login token. It is kinda the inverse of a clear cache button :D