From 17a3ee676f0db46ad3d4c596832e2aeec2cb2411 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 3 Jun 2018 12:39:32 -0300 Subject: Add `since` parameter to basic sync --- lib/Matrix/Client.pm6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Matrix/Client.pm6') diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 6fdf2fb..5e4914a 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -115,8 +115,8 @@ multi method change-avatar(Str:D $mxc-url!) { # Syncronization -multi method sync() { - my $res = $.get("/sync", timeout => 30000); +multi method sync(:$since = "") { + my $res = $.get("/sync", timeout => 30000, since => $since); Matrix::Response::Sync.new($res.content) } -- cgit v1.2.3-54-g00ecf