Commit ed627807b2
Unsigned
Layout: unified · split
src/room_buffer.rs +2
| @@ -199,6 +199,8 @@ impl RoomBuffer { | |||
| 199 | .unwrap_or_else(|| format!("{}", user_id)); | 199 | .unwrap_or_else(|| format!("{}", user_id)); |
| 200 | 200 | ||
| 201 | // count members with the same display name | 201 | // count members with the same display name |
| 202 | // TODO: Counting here is suboptimal since this will be done for every message. We probably | ||
| 203 | // want to keep a user_id -> display_name hashmap instead. | ||
| 202 | let count = self | 204 | let count = self |
| 203 | .inner | 205 | .inner |
| 204 | .room | 206 | .room |