Set use authorizization header

This commit is contained in:
Robert Long 2022-01-06 16:51:23 -08:00
parent c609d42554
commit bcd58aae90

View file

@ -26,7 +26,10 @@ function waitForSync(client) {
} }
export async function initClient(clientOptions) { export async function initClient(clientOptions) {
const client = matrix.createClient(clientOptions); const client = matrix.createClient({
...clientOptions,
useAuthorizationHeader: true,
});
await client.startClient({ await client.startClient({
// dirty hack to reduce chance of gappy syncs // dirty hack to reduce chance of gappy syncs