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 {
235 235
236 if room_name == "#" { 236 if room_name == "#" {
237 "##".to_owned() 237 "##".to_owned()
238 } else if room_name.starts_with('#') { 238 } else if room_name.starts_with('#') || room.is_direct() {
239 room_name 239 room_name
240 } else { 240 } else {
241 // TODO: only do this for non-direct chats
242 format!("#{}", room_name) 241 format!("#{}", room_name)
243 } 242 }
244 } 243 }