refactor: SyncUpdateExtension null safe
This commit is contained in:
parent
8ae77215b5
commit
efca583cf5
|
|
@ -1,4 +1,3 @@
|
||||||
// @dart=2.9
|
|
||||||
/*
|
/*
|
||||||
* Famedly Matrix SDK
|
* Famedly Matrix SDK
|
||||||
* Copyright (C) 2020, 2021 Famedly GmbH
|
* Copyright (C) 2020, 2021 Famedly GmbH
|
||||||
|
|
@ -41,5 +40,5 @@ extension SyncUpdateFilters on SyncUpdate {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns if this sync update has presence updates
|
/// Returns if this sync update has presence updates
|
||||||
bool get hasPresenceUpdate => presence != null && presence.isNotEmpty;
|
bool get hasPresenceUpdate => presence?.isNotEmpty ?? false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue