From 0bc2c9ee492f9832204154db5e00902fd0d7d7f5 Mon Sep 17 00:00:00 2001 From: Alendia Date: Mon, 4 Apr 2022 21:41:41 +0800 Subject: [PATCH] Update E2E encryption support docs --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fd645d07083..9b5072abc88 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ End-to-end encryption support The SDK supports end-to-end encryption via the Olm and Megolm protocols, using [libolm](https://gitlab.matrix.org/matrix-org/olm). It is left up to the -application to make libolm available, via the ``Olm`` global. +application to make libolm available, via the global variable ``Olm`` . It is also necessary to call ``matrixClient.initCrypto()`` after creating a new ``MatrixClient`` (but **before** calling ``matrixClient.startClient()``) to @@ -324,21 +324,52 @@ specification. To provide the Olm library in a browser application: - * download the transpiled libolm (from https://packages.matrix.org/npm/olm/). + * download the transpiled libolm (from https://gitlab.matrix.org/matrix-org/olm/-/releases). * load ``olm.js`` as a ``