element-x-ada/libraries/matrix
Jorge Martin Espinosa 2c8b0d0b95
Make sure to save the tokens the Client might return when its session is restored (#3378)
* Use `ClientSessionDelegate` to ensure tokens are always updated.

Refreshed tokens on client restoration might not have been stored to disk if the token refresh happened before `RustMatrixClient` was built and the `ClientDelegate` was set in it.

Using `ClientSessionDelegate` should ensure the tokens refreshed callback is called at any point in time.

* Improve how assigning the Client works, fix docs

* Fix review comments
2024-09-04 10:54:31 +02:00
..
api Make sure to save the tokens the Client might return when its session is restored (#3378) 2024-09-04 10:54:31 +02:00
impl Make sure to save the tokens the Client might return when its session is restored (#3378) 2024-09-04 10:54:31 +02:00
test Make sure to save the tokens the Client might return when its session is restored (#3378) 2024-09-04 10:54:31 +02:00