From 8e47054137db9fda75a9b102df397d1d7ec3d280 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 3 Jun 2018 10:58:31 -0300 Subject: Fix sync infinite recursion. --- lib/Matrix/Client.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Matrix') 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) } -- cgit v1.2.3-54-g00ecf