diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2018-06-03 12:39:32 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2018-06-03 12:39:32 -0300 |
commit | 17a3ee676f0db46ad3d4c596832e2aeec2cb2411 (patch) | |
tree | 913bcfffcc9ec1a26af9adc0d6f3a2c5583ff5f7 /lib/Matrix | |
parent | 0ea9f135fdd0d1d2337859aac5656836e0b45fdc (diff) | |
download | perl6-matrix-client-17a3ee676f0db46ad3d4c596832e2aeec2cb2411.tar.gz |
Add `since` parameter to basic sync
Diffstat (limited to 'lib/Matrix')
-rw-r--r-- | lib/Matrix/Client.pm6 | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |