From f0d1f4f0f15b8d8b1538c9afb4669627db44113b Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sat, 4 Aug 2018 18:53:09 -0300 Subject: Fix sync without parameters --- lib/Matrix/Client.pm6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Matrix') 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) -- cgit v1.2.3-70-g09d2