aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2018-08-04 18:53:09 -0300
committerMatias Linares <matiaslina@gmail.com>2018-08-04 18:53:09 -0300
commitf0d1f4f0f15b8d8b1538c9afb4669627db44113b (patch)
tree7b80a0210a8c20b1727d6d1e813c93e00d21caf9
parentf3f383db83504fd6e921b7899bbe893575625d45 (diff)
downloadperl6-matrix-client-f0d1f4f0f15b8d8b1538c9afb4669627db44113b.tar.gz
Fix sync without parameters
-rw-r--r--lib/Matrix/Client.pm66
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6
index 0d4f400..1e080bd 100644
--- a/lib/Matrix/Client.pm6
+++ b/lib/Matrix/Client.pm6
@@ -123,11 +123,11 @@ multi method sync(Hash :$sync-filter is copy, :$since = "") {
$.sync(sync-filter => to-json($sync-filter), since => $since)
}
-multi method sync(Str :$sync-filter, Str :$since = "") {
+multi method sync(Str:D :$sync-filter, Str :$since = "") {
my $res = $.get("/sync",
timeout => 30000,
- filter => $sync-filter,
- since => $since
+ :$sync-filter,
+ :$since
);
Matrix::Response::Sync.new($res.content)