summaryrefslogtreecommitdiff
path: root/lib/Matrix/Client
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Matrix/Client')
-rw-r--r--lib/Matrix/Client/Room.pm611
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Matrix/Client/Room.pm6 b/lib/Matrix/Client/Room.pm6
index 6897b8d..efbca06 100644
--- a/lib/Matrix/Client/Room.pm6
+++ b/lib/Matrix/Client/Room.pm6
@@ -7,17 +7,8 @@ unit class Matrix::Client::Room does Matrix::Client::Requester;
has $!name;
has $.id;
-multi submethod BUILD(Str :$!id!, :$!home-server!, :$!access-token!, :$json?) {
+submethod TWEAK {
$!url-prefix = "/rooms/$!id";
-
- if so $json {
- my @events = $json<state><events>.clone;
- for @events -> $ev {
- if $ev<type> eq "m.room.name" {
- $!name = $ev<content><name>;
- }
- }
- }
}
method !get-name() {