Skip to main content

preview_of

Function preview_of 

Source
pub fn preview_of(msg: &Value, width: usize) -> String
Expand description

One-line preview of a message, for trees and status views.

viceroy: previews used to fall back to the path of an attachment, so a long-form message rendered as chats/slug/CHAT-2026... instead of its content. The linked document’s first meaningful line is used now.