From 1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 5 Jun 2018 23:49:24 -0300 Subject: Add return value to joined-rooms --- 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 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.Seq.map(-> $room-id { -- cgit v1.2.3-70-g09d2