aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix
diff options
context:
space:
mode:
authorMatias Linares <matias@deprecated.org>2018-06-05 23:49:46 -0300
committerMatias Linares <matias@deprecated.org>2018-06-05 23:49:46 -0300
commit539171acddfd36ae8f18cfa7db07ffafc3e469d9 (patch)
treef65d903ad5441007d5986c777426d1e9fa01baac /lib/Matrix
parent1a0be48ad15ec6bb508e76c9ac3a4f2d7440c511 (diff)
downloadperl6-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.
Diffstat (limited to 'lib/Matrix')
-rw-r--r--lib/Matrix/Client/Room.pm64
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}>"
}