feat: enhance token retrieval for service worker with multi-account support

This commit is contained in:
2026-03-15 17:17:07 +11:00
parent c7bd376292
commit 3cb4237f59
2 changed files with 28 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
import { useSpecVersions } from './useSpecVersions';
/**
* Determines whether to use authenticated media endpoints.
* @returns true if the server supports authenticated media (Matrix v1.11+)
*/
export const useMediaAuthentication = (): boolean => {
const { versions, unstable_features: unstableFeatures } = useSpecVersions();