diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2018-06-03 10:58:31 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2018-06-03 10:58:31 -0300 |
commit | 8e47054137db9fda75a9b102df397d1d7ec3d280 (patch) | |
tree | be8be70aea2272192301b7f1bd069cabbb2a1808 /lib | |
parent | 0a36a8735d99a5aafac7a522affccf403efa6e28 (diff) | |
download | perl6-matrix-client-8e47054137db9fda75a9b102df397d1d7ec3d280.tar.gz |
Fix sync infinite recursion.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Matrix/Client.pm6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index b0f4230..ca3884a 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -129,7 +129,7 @@ multi method sync(Str :$sync-filter, Str :$since = "") { Matrix::Response::Sync.new($res.content) } -multi method sync(:$sync-filter is copy, :$since = "") { +multi method sync(Hash :$sync-filter is copy, :$since = "") { $.sync(sync-filter => to-json($sync-filter), since => $since) } |