ol.trixnity.notification
Notification snapshots and notification update flows.
Upstream Mapping
This namespace maps to Trixnity’s NotificationService.
The public wrappers here cover:
-
observing the full notification set in keyed or flat shapes
-
looking up individual notifications and unread counts
-
consuming live notification updates
Use ol.trixnity.room for room timeline access and
ol.trixnity.client for client lifecycle.
get-all
(get-all client)
Returns a Missionary flow of the current notifications as a list of inner flows.
get-by-id
(get-by-id client id)
Returns a Missionary flow of the notification with id, or nil when unavailable.
get-count
(get-count client)
(get-count client room-id)
Returns a Missionary flow of notification counts.
With one argument, returns the total count across all rooms.
With room-id, returns the count for that room.
is-unread
(is-unread client room-id)
Returns a Missionary flow that is true when room-id is considered unread.
mark-read
(mark-read client room-id event-id)
Marks room-id as read through event-id and returns a Missionary task.
This advances both the room’s read markers and clears explicit unread state.
dismiss
(dismiss client id)
Marks the notification with id as dismissed and returns a Missionary task.