refactor: SyncUpdateExtension null safe

This commit is contained in:
Christian Pauly 2021-08-19 10:22:44 +02:00
parent 8ae77215b5
commit efca583cf5
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
// @dart=2.9
/*
* Famedly Matrix SDK
* Copyright (C) 2020, 2021 Famedly GmbH
@ -41,5 +40,5 @@ extension SyncUpdateFilters on SyncUpdate {
}
/// Returns if this sync update has presence updates
bool get hasPresenceUpdate => presence != null && presence.isNotEmpty;
bool get hasPresenceUpdate => presence?.isNotEmpty ?? false;
}