Chat: a GIF picker kept family-friendly, sharing a place, and Signal conversations in the Chat list
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ddf9942c2
commit
584a95753d
16 files changed
+200
-13
No files matched your search
@@ -12,7 +12,7 @@ async function sgStart() { // keep the unread count and live updates running wha
|
||||
if (!allowed('signal') || sg.es) return;
|
||||
try { const st = await sgApi('/status'); sg.st = st; sg.unread = st.unread || 0; renderNav(activeTab); } catch {}
|
||||
sg.es = new EventSource('/api/signal/events');
|
||||
sg.es.onmessage = e => { let ev; try { ev = JSON.parse(e.data); } catch { return; } sgEvent(ev); };
|
||||
sg.es.onmessage = e => { let ev; try { ev = JSON.parse(e.data); } catch { return; } sgEvent(ev); if (typeof chSigChanged === 'function') chSigChanged(); };
|
||||
}
|
||||
function sgStop() { if (sg.es) { sg.es.close(); sg.es = null; } }
|
||||
// ---- Getting your attention: a chime, a desktop notification when the app is in the background, the count in the tab title and on the app icon.
|
||||
|
||||
Reference in new issue
Block a user