SyncUpdateFilters extension

This extension adds easy-to-use filters for the sync update, meant to be used on the client.onSync stream, e.g. client.onSync.stream.where((s) => s.hasRoomUpdate). Multiple filters can easily be combind with boolean logic: client.onSync.stream.where((s) => s.hasRoomUpdate || s.hasPresenceUpdate)

on

Properties

hasPresenceUpdate bool

Available on SyncUpdate, provided by the SyncUpdateFilters extension

Returns if this sync update has presence updates
no setter
hasRoomUpdate bool

Available on SyncUpdate, provided by the SyncUpdateFilters extension

Returns true if this sync updat has a room update That means there is account data, if there is a room in one of the join, leave or invite blocks of the sync or if there is a to_device event.
no setter