logoutAll method
Sends a logout command to the homeserver and clears all local data, including all persistent data from the store.
Implementation
@override
Future<void> logoutAll() async {
// Upload keys to make sure all are cached on the next login.
await encryption?.keyManager.uploadInboundGroupSessions();
final futures = <Future>[];
futures.add(super.logoutAll());
futures.add(clear());
await Future.wait(futures).catchError((e, s) {
Logs().e('Logout all failed', e, s);
throw e;
});
}