Skip to content

Cette session ne prend pas en charge le chiffrement #370

@cmakasy

Description

@cmakasy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions