From 9f71b6d3c581c669c39232aa36e32185853e9a42 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Sun, 3 Jul 2016 15:16:37 +0300 Subject: [PATCH] README: Change the matrix.api example to use :sync() The example was still using the old :initial_sync() method, which does not exist anymore. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6318a27..166a820 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ local api = matrix.api("http://localhost:8080") local response = api:register("m.login.password", { user = "jdoe", password = "sup3rsecr1t" }) api.token = response.token -handle_events(api:initial_sync(1)) +handle_events(api:sync()) response = api:create_room({ alias = "my_room_alias" }) api:send_text(response.room_id, "Hello!") ```