From bcd58aae904b95a0616a3fb456934f8152cf9507 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 6 Jan 2022 16:51:23 -0800 Subject: [PATCH] Set use authorizization header --- src/matrix-utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/matrix-utils.js b/src/matrix-utils.js index f2f4ec0..977744d 100644 --- a/src/matrix-utils.js +++ b/src/matrix-utils.js @@ -26,7 +26,10 @@ function waitForSync(client) { } export async function initClient(clientOptions) { - const client = matrix.createClient(clientOptions); + const client = matrix.createClient({ + ...clientOptions, + useAuthorizationHeader: true, + }); await client.startClient({ // dirty hack to reduce chance of gappy syncs