famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
52 stars 30 forks source link

fix: ensureNotSoftLoggedOut must be called before network reqeust in syncFilter check #1801

Closed krille-chan closed 3 months ago

krille-chan commented 3 months ago

The ensureNotSoftLoggedOut() method must be called before we do any network request. With having the sync filter check before, we send a failing POST request with the possible wrong access token which then would let the app logout itself.