Also check the unstable feature for MSC3916

This commit is contained in:
Till Faelligen
2024-08-23 09:50:04 +02:00
parent 599da30c4b
commit 87e16f694a
+1 -1
View File
@@ -105,7 +105,7 @@ async function tryUpdateServerSupportMap(clientApiUrl: string, accessToken?: str
console.log(`[ServiceWorker] /versions response for '${clientApiUrl}': ${JSON.stringify(versions)}`);
serverSupportMap[clientApiUrl] = {
supportsAuthedMedia: Boolean(versions?.versions?.includes("v1.11")),
supportsAuthedMedia: Boolean(versions?.versions?.includes("v1.11") || versions?.unstable_features?.["org.matrix.msc3916.stable"] === true),
cacheExpiryTimeMs: new Date().getTime() + 2 * 60 * 60 * 1000, // 2 hours from now
};
console.log(