fix(web): notification media preview and theme switching
Some checks failed
CI / test (push) Failing after 19s

- show media labels instead of raw URLs in browser notifications

- support notification icon preview for image messages

- implement effective light/dark/system theme application

- apply appearance prefs on app startup
This commit is contained in:
2026-03-08 11:07:30 +03:00
parent 663df37d92
commit 0e44988634
4 changed files with 109 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import { AuthPage } from "../pages/AuthPage";
import { ChatsPage } from "../pages/ChatsPage";
import { useAuthStore } from "../store/authStore";
import { useChatStore } from "../store/chatStore";
import { applyAppearancePreferences, getAppPreferences } from "../utils/preferences";
const PENDING_INVITE_TOKEN_KEY = "bm_pending_invite_token";
@@ -18,6 +19,10 @@ export function App() {
const setActiveChatId = useChatStore((s) => s.setActiveChatId);
const [joiningInvite, setJoiningInvite] = useState(false);
useEffect(() => {
applyAppearancePreferences(getAppPreferences());
}, []);
useEffect(() => {
if (!accessToken) {
return;