Skip to main content

queue_preview_label

Function queue_preview_label 

Source
pub fn queue_preview_label(text: &str) -> String
Expand description

Build the display preview for one queued message: the full text when it fits, otherwise the first MAX_QUEUE_PREVIEW_CHARS characters plus an ellipsis. Truncation is char-boundary safe; newlines are preserved for the client to render.