From 09097d355404b93d069462f1c1cda79016dc3a6b Mon Sep 17 00:00:00 2001 From: unfunny Date: Sun, 13 Sep 2026 00:53:39 -0400 Subject: [PATCH] fix: update to MatrixClient API for matrix-js-sdk v41 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9f309eb..9ea737e 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,8 @@ require('dotenv').config(); -const { Client } = require('matrix-js-sdk'); +const { MatrixClient } = require('matrix-js-sdk'); const fs = require('fs'); -const client = new Client({ +const client = new MatrixClient({ accessToken: process.env.MATRIX_ACCESS_TOKEN, matrix_homeserver: { baseUrl: process.env.MATRIX_HOME_SERVER,