matrix-bot-sdk
matrix-bot-sdk copied to clipboard
Cette session ne prend pas en charge le chiffrement
Describe the bug on Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy
Cette session ne prend pas en charge le chiffrement, elle ne peut donc pas être vérifiée.
To Reproduce Steps to reproduce the behavior:
if (loginMode == "password") {
const authClient = await auth.passwordLogin(user.username, user.password);
user.accessToken = authClient.accessToken;
}
client = new MatrixClient(homeserverUrl, user.accessToken, storage, crypto);
with
const botStorage = `${storageDir}/bot-${configId}/bot-${configId}.json`;
const botCryptoStorage = `${storageDir}/bot-${configId}/bot-${configId}-crypto`;
Expected behavior Creation of a device that can work with encrypted rooms.
Log snippet
Mon, 18 Nov 2024 08:40:44 GMT [INFO] [matrix_bot] Bot initializing...
...
Mon, 18 Nov 2024 08:40:51 GMT [INFO] [MatrixClientLite] End-to-end encryption enabled
Mon, 18 Nov 2024 08:40:51 GMT [INFO] [matrix_bot] Bot started!