feat: add update notification component with download and install functionality

This commit is contained in:
2026-02-22 00:59:14 +11:00
parent d9eae3f07c
commit b08b4b4129
4 changed files with 322 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import { MatrixClient, RoomEvent, ClientEvent, MatrixEvent, Room, IPushRules } f
import { useAtomValue } from 'jotai';
import { useNavigate } from 'react-router-dom';
import { WindowControls } from './WindowControls';
import { UpdateNotification } from '../update-notification';
import * as css from './TitleBar.css';
import { getUnreadInfos, getOrphanParents, guessPerfectParent, getAllParents } from '../../utils/room';
import { getCanonicalAliasOrRoomId, getMxIdLocalPart } from '../../utils/matrix';
@@ -615,6 +616,7 @@ export function TitleBar({ mx, children }: TitleBarProps) {
))}
{children}
</Box>
<UpdateNotification />
<WindowControls />
</Box>
);