Skip to main content

classify_chat_input

Function classify_chat_input 

Source
pub fn classify_chat_input(input: String) -> Option<ChatInputShortcut>
Expand description

Single source of truth for “is this typed text an npub or an invite URL?”. Used by the New Chat paste field, the chat-list search bar, and the deep-link handler so all three branches agree on what counts as a chat-opening shortcut. Returns None for regular search-style text.