Everyday chat tools
Undo send, shortcuts, saved replies, slash commands, link previews, image editing, export and translate.
All built in and need no props unless noted. Anything saved is kept on this device only (localStorage).
Undo send
Hold a sent message for a few seconds with an Undo link. Off by default. Undo puts the text and files back in the composer. Thread replies and in-call chat are not held.
features={{ undoSend: true }} // 5 secondsfeatures={{ undoSend: 8 }} // or a number of secondsKeyboard & touch
Pin a chat, mark as unread
Right-click (or long-press) a chat in the list to Pin to top or Mark as unread. Saved on this device per user, like chat folders; opening a chat clears its unread mark.
Composer tools
- Saved replies. The speech-bubble button in the composer footer lists your saved replies: click one to insert it, or New to save the current text. Up to 100 replies, key
chat-saved-replies. - Slash commands. Type
/at the start of the main composer (not in threads):/me,/shrug,/tableflip,/unflip,/mute,/unmute,/search,/shortcuts, then saved replies matched by title. - Link previews. While composing, each preview has Remove preview; the link is sent marked
data-no-embed, so nobody gets a preview. After sending, every preview has Hide / Show preview (remembered per message). - Edit images before sending. Hover an image in the attachment preview and click the pencil: crop, rotate, draw in six colours, undo, then Use image. The edited file keeps its caption.
- Paste & drop. Paste a screenshot or copied files (Ctrl/⌘+V), or drag files onto the chat or a thread. Text copied from Excel/Word still pastes as text.
Viewing & search
- Image viewer. Zoom (wheel, buttons), pan by dragging, rotate (
r/Shift+R), download the current image, or All to download every image in the message. - Search highlight.Picking a search result highlights the term in the chat and an open thread, with a floating "term" 2 of 9 bar and previous / next buttons. Uses the CSS Custom Highlight API; style it with
--chat-search-match-bg. - Last seen.The 1:1 header shows Online or "Last seen 5 minutes ago" (
lastSeenfrom/user/list, updated live).
Export & translate
- Export. Header ⋯ menu → Export chat → Plain text (.txt) or PDF (browser print dialog). Exports the messages currently loaded; scroll up first to include older history.
- Translate. On browsers with the built-in Translator API (desktop Chrome 138+), the message ⋯ menu has Translate. Translation runs on the device and shows under the original with Show original only. The language is remembered (
chat-translate-language). Elsewhere the item is hidden.
Unread handling
Opening a chat with unread messages draws an "N new messages" divider above the first unread one and shows an "N unread · Jump" pill until you reach it. While scrolled up, the scroll-to-bottom button shows how many new messages arrived below.