ChannelSetEntity

data class ChannelSetEntity(val id: Int = SINGLETON_ID, val channelSet: ChannelSet, val lastReconciled: ByteString? = null)(source)

The connected device's channel set, stored per-device (one row per Room database).

The channel set was historically a single global DataStore (channel_set.pb) while messages are per-device, so switching between devices rendered one device's messages against another device's channels — the same channel then appeared multiple times in the conversation list (#4623). Storing it here, in the per-device database, keeps it in lockstep with the messages it labels. The whole ChannelSet proto (settings + lora_config) is persisted as one row so semantics match the old whole-proto DataStore exactly.

Constructors

Link copied to clipboard
constructor(id: Int = SINGLETON_ID, channelSet: ChannelSet, lastReconciled: ByteString? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val channelSet: ChannelSet
Link copied to clipboard
val id: Int
Link copied to clipboard
val lastReconciled: ByteString?

The channel set the stored conversations are currently keyed against, encoded as a ChannelSet.

Link copied to clipboard
val lastReconciledChannelSet: ChannelSet?

The baseline decoded, or null when no reconcile has run for this device yet.