Commit 65dfe68688

65dfe686882bc05d881f91d3e5f5cd3eb147538e

parent: cac210ddb7

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2021-01-01 14:08 UTC

room: Don't put a # in front of DM rooms

Layout: unified · split

src/room/members.rs +1 −2
@@ -235,10 +235,9 @@ impl Members {
235235
236236 if room_name == "#" {
237237 "##".to_owned()
238 } else if room_name.starts_with('#') {
238 } else if room_name.starts_with('#') || room.is_direct() {
239239 room_name
240240 } else {
241 // TODO: only do this for non-direct chats
242241 format!("#{}", room_name)
243242 }
244243 }