diff options
-rw-r--r-- | lib/Matrix/Client.pm6 | 6 |
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) |