Merge branch 'krille/clearlogs' into 'main'

fix: Clear logs on clear()

See merge request famedly/famedlysdk!583
This commit is contained in:
Christian Pauly 2020-12-23 11:28:36 +00:00
commit e2f2c124d2
1 changed files with 1 additions and 0 deletions

View File

@ -807,6 +807,7 @@ class Client extends MatrixApi {
/// Resets all settings and stops the synchronisation. /// Resets all settings and stops the synchronisation.
void clear() { void clear() {
Logs().outputEvents.clear();
database?.clear(id); database?.clear(id);
_id = accessToken = _id = accessToken =
homeserver = _userID = _deviceID = _deviceName = prevBatch = null; homeserver = _userID = _deviceID = _deviceName = prevBatch = null;