aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matias@deprecated.org>2018-06-05 23:49:24 -0300
committerMatias Linares <matias@deprecated.org>2018-06-05 23:49:24 -0300
commit1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511 (patch)
treed5b5120214c663c31dff21e7cc4c6656a284c83b
parentdf75b85c9af231227cfaab0d722cad410b3ff55c (diff)
downloadperl6-matrix-client-1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511.tar.gz
Add return value to joined-rooms
-rw-r--r--lib/Matrix/Client.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6
index 1ef4426..3b8efdb 100644
--- a/lib/Matrix/Client.pm6
+++ b/lib/Matrix/Client.pm6
@@ -160,7 +160,7 @@ method leave-room($room-id) {
$.post("/rooms/$room-id/leave");
}
-method joined-rooms() {
+method joined-rooms(--> Seq) {
my $res = $.get('/joined_rooms');
my $data = from-json($res.content);
return $data<joined_rooms>.Seq.map(-> $room-id {