aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2018-06-03 12:39:32 -0300
committerMatias Linares <matiaslina@openmailbox.org>2018-06-03 12:39:32 -0300
commit17a3ee676f0db46ad3d4c596832e2aeec2cb2411 (patch)
tree913bcfffcc9ec1a26af9adc0d6f3a2c5583ff5f7 /lib
parent0ea9f135fdd0d1d2337859aac5656836e0b45fdc (diff)
downloadperl6-matrix-client-17a3ee676f0db46ad3d4c596832e2aeec2cb2411.tar.gz
Add `since` parameter to basic sync
Diffstat (limited to 'lib')
-rw-r--r--lib/Matrix/Client.pm64
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)
}