diff options
author | Matias Linares <matias@deprecated.org> | 2018-06-05 23:49:46 -0300 |
---|---|---|
committer | Matias Linares <matias@deprecated.org> | 2018-06-05 23:49:46 -0300 |
commit | 539171acddfd36ae8f18cfa7db07ffafc3e469d9 (patch) | |
tree | f65d903ad5441007d5986c777426d1e9fa01baac | |
parent | 1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511 (diff) | |
download | perl6-matrix-client-539171acddfd36ae8f18cfa7db07ffafc3e469d9.tar.gz |
Don't use the name in gist/Str for a room.
If the name isn't cached, this methods will ping to the server for the
name, and that's something bad on stringification.
-rw-r--r-- | lib/Matrix/Client/Room.pm6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Matrix/Client/Room.pm6 b/lib/Matrix/Client/Room.pm6 index 6ba3ff1..6897b8d 100644 --- a/lib/Matrix/Client/Room.pm6 +++ b/lib/Matrix/Client/Room.pm6 @@ -56,9 +56,9 @@ method leave() { } method gist(--> Str) { - "Room<name: {self.name()}, id: {self.id}>" + "Room<id: {self.id}>" } method Str(--> Str) { - "Room<name: {self.name()}, id: {self.id}>" + "Room<id: {self.id}>" } |