element-x-ada/libraries
Jorge Martin Espinosa c08b8c0416
Make sure the logout action doesn't cause a crash (#3480)
* Make sure the logout doesn't cause a crash

Some reasons why this could happen:
1. The `ClientDelegate` could receive a `didReceiveAuthError` callback call on a logout, which could trigger another logout when every Rust object had already been destroyed.
2. Even though we stop the sync before logging out, `LoggedInFlowNode` will try to start it again automatically when it detects we still have internet connection.

Making sure to unregister the delegate should fix the first part of the issue.

For the other one, adding `RustSyncService.isServiceReady` to check if we should start/stop the service, which is enabled by default and set to false on destroy should help.

* Apply the same patch on account deactivation.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-09-18 11:54:54 +00:00
..
androidutils Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
architecture Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
core Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
cryptography Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
dateformatter Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
deeplink Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
designsystem Make text parts in bold. 2024-09-17 17:39:23 +02:00
di Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
encrypted-db Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
eventformatter Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
featureflag crypto: Add configuration flag to enable invisible crypto 2024-09-12 14:53:59 +02:00
fullscreenintent Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
indicator Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
maplibre-compose Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
matrix Make sure the logout action doesn't cause a crash (#3480) 2024-09-18 11:54:54 +00:00
matrixui Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
mediapickers Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
mediaplayer Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
mediaupload Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
mediaviewer Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
network Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
oidc Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
permissions Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
preferences Add forced logout flow when the proxy is no longer available (#3458) 2024-09-16 09:13:02 +00:00
push Sync Strings from Localazy 2024-09-17 11:05:35 +00:00
pushproviders Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
pushstore Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
qrcode Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
roomselect Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
rustsdk
session-storage Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
testtags Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
textcomposer Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
troubleshoot Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
ui-strings Account deactivation. 2024-09-17 16:51:11 +02:00
ui-utils Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
usersearch Migrate license to AGPL. 2024-09-06 17:19:19 +02:00
voicerecorder Migrate license to AGPL. 2024-09-06 17:19:19 +02:00