Commit 65dfe68688
Unsigned
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 | } |