From 1bb82108b742d2ab8fa647dfd2bcc198ac487904 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 22 Apr 2022 12:04:31 +0100 Subject: [PATCH] fix example in readme (#2315) Co-authored-by: Matthew Hodgson --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd645d070..4f41a5a1b 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ 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. -It is also necessary to call ``matrixClient.initCrypto()`` after creating a new +It is also necessary to call ``await matrixClient.initCrypto()`` after creating a new ``MatrixClient`` (but **before** calling ``matrixClient.startClient()``) to initialise the crypto layer.