diff options
author | Matias Linares <matias@deprecated.org> | 2018-06-05 23:49:24 -0300 |
---|---|---|
committer | Matias Linares <matias@deprecated.org> | 2018-06-05 23:49:24 -0300 |
commit | 1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511 (patch) | |
tree | d5b5120214c663c31dff21e7cc4c6656a284c83b /lib | |
parent | df75b85c9af231227cfaab0d722cad410b3ff55c (diff) | |
download | perl6-matrix-client-1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511.tar.gz |
Add return value to joined-rooms
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 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 { |