ChannelSetDao

Per-device persistence of the connected device's ChannelSetEntity.

Functions

Link copied to clipboard
abstract suspend fun clear()
Link copied to clipboard
abstract suspend fun clearRetainingBaseline(emptyChannelSet: ByteArray)

Drops the cached channel set but keeps ChannelSetEntity.lastReconciled.

Link copied to clipboard
abstract suspend fun get(): ChannelSetEntity?

One-shot read of the stored channel set for read-modify-write updates; null when none is persisted yet.

Link copied to clipboard
abstract fun observe(): Flow<ChannelSetEntity?>

Observes the single stored channel set, emitting null when none has been persisted for this device yet.

Link copied to clipboard
abstract suspend fun setLastReconciled(baseline: ByteString)

Records the channel set the stored conversations are now keyed against.

Link copied to clipboard
abstract suspend fun upsert(entity: ChannelSetEntity)