aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--META6.json2
-rw-r--r--lib/Matrix/Client.pm62
2 files changed, 2 insertions, 2 deletions
diff --git a/META6.json b/META6.json
index a565cf5..56bdb4e 100644
--- a/META6.json
+++ b/META6.json
@@ -2,7 +2,7 @@
"perl" : "6.c",
"name" : "Matrix::Client",
"license" : "Artistic-2.0",
- "version" : "0.2.1",
+ "version" : "0.2.2",
"description" : "Matrix client for Perl 6",
"tags" : [ "Net", "Matrix" ],
"depends" : [
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)
}