Skip to main content

ACTIVE_CHAT

Static ACTIVE_CHAT 

Source
pub static ACTIVE_CHAT: LazyLock<RwLock<Option<String>>>
Expand description

Chat id currently visible to the user with auto-mark eligibility — set by the frontend when the chat is open AND pinned to bottom AND the window is active. Used by the inbound event handler to mark new messages read on arrival, so the dock badge never bumps for messages the user is actively watching. Cleared when any of those conditions flips.