fix: group toast icon, left-click spell suggestions, scroll no-yank (0.1.12/batch66)
1. Group message toast had no icon: the generated group icon is a data: URL, but the 0.1.11 handler only used ALREADY-cached icons and skipped it. data: URLs are synchronous — use them immediately, so every group toast shows an icon. 2. Spell suggestions on a LEFT click: clicking a red-squiggled word in the message box now pops the native suggestions menu (renderer asks the shell to synthesize a right-click at that point → real dictionary suggestions). No right-click. 3. Scroll felt "stuck" because an incoming message yanked you to the bottom even when you'd scrolled up to read history (worse now that bg messages arrive live). appendBubble now keeps your position unless you were at the bottom / it's your own message, and surfaces the "jump to latest" control instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,9 @@ contextBridge.exposeInMainWorld('bizConnectNative', Object.freeze({
|
||||
// Pre-warm the notification DP cache with contact photo URLs (called after chats load) so the first
|
||||
// toast from anyone already has their photo — no per-notification download lag.
|
||||
precacheAvatars: (urls) => { try { return ipcRenderer.invoke('precache-avatars', urls); } catch (_) { return Promise.resolve(false); } },
|
||||
// Ask the shell to show native spelling suggestions for the word at page coords (x,y) — used to bring
|
||||
// up corrections on a LEFT click in the message box (not just right-click).
|
||||
spellSuggestAt: (x, y) => { try { ipcRenderer.send('spell-suggest', { x, y }); } catch (_) {} },
|
||||
// Manual "Check for updates" from Settings. Resolves {status:'available'|'current'|'dev'|'error', version?}.
|
||||
// On 'available' the shell downloads in the background and prompts to restart when ready.
|
||||
checkForUpdates: () => ipcRenderer.invoke('check-updates'),
|
||||
|
||||
Reference in New Issue
Block a user