Commit e0de1d9442
Unsigned
Layout: unified · split
src/room_buffer.rs +3 −1
| @@ -126,7 +126,9 @@ impl RoomBuffer { | |||
| 126 | pub fn calculate_buffer_name(&self) -> String { | 126 | pub fn calculate_buffer_name(&self) -> String { |
| 127 | let room_name = self.room.calculate_name(); | 127 | let room_name = self.room.calculate_name(); |
| 128 | 128 | ||
| 129 | if room_name.starts_with("#") { | 129 | if room_name == "#" { |
| 130 | "##".to_owned() | ||
| 131 | } else if room_name.starts_with("#") { | ||
| 130 | room_name | 132 | room_name |
| 131 | } else { | 133 | } else { |
| 132 | // TODO: only do this for non-direct chats | 134 | // TODO: only do this for non-direct chats |