Skip to main content

strip_expired

Function strip_expired 

Source
pub fn strip_expired(messages: &mut Vec<Message>)
Expand description

Drop already-expired messages from a freshly-loaded DB window, purging their remnants in the background. Rows that expired while the app was closed (or while their chat was out of STATE) must NEVER render — not even for the frame between hydration and the next sweep tick.