Merge branch 'krille/encryption-background' into 'main'

fix: Dont run background task after logged out

See merge request famedly/famedlysdk!604
This commit is contained in:
Sorunome 2021-01-05 14:23:20 +00:00
commit 6be4ff0b24
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class Encryption {
// this method is responsible for all background tasks, such as uploading online key backups
bool _backgroundTasksRunning = true;
void _backgroundTasks() {
if (!_backgroundTasksRunning) {
if (!_backgroundTasksRunning || !client.isLogged()) {
return;
}