feat(desktop): mention notifications via realtime + osNotify

This commit is contained in:
byGalax
2026-05-16 17:59:57 +02:00
parent 7355b343c8
commit ef98efb938
2 changed files with 47 additions and 0 deletions
+2
View File
@@ -6,6 +6,7 @@ import { startConversationKeySync } from '../lib/conversationKeySync';
import { startDeviceApprovalListener } from '../lib/deviceApproval';
import { ensureInstallId } from '../lib/installId';
import { ensureNotificationPermission } from '../lib/osNotify';
import { useMentionNotifications } from '../lib/useMentionNotifications';
import { cachedUserKey } from '../lib/userIdentity';
import { CallUI } from './CallUI';
import { DeviceApprovalBanner } from './DeviceApprovalBanner';
@@ -13,6 +14,7 @@ import { Sidebar } from './Sidebar';
export function AppShell() {
const { session } = useAuth();
useMentionNotifications(session?.user.id);
useEffect(() => {
// Prompt once per authenticated shell mount. Module-level guard prevents
// re-asking if the user already responded this session.