diff --git a/lib/src/utils/sync_update_extension.dart b/lib/src/utils/sync_update_extension.dart index e0839aac..82dfb428 100644 --- a/lib/src/utils/sync_update_extension.dart +++ b/lib/src/utils/sync_update_extension.dart @@ -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; }