Commit ed627807b2

ed627807b2908e9afadbd2a2bf1daf226d8fa188

parent: 4b9619902e

Unsigned

Denis Kasak <dkasak@termina.org.uk> · 2020-06-09 08:05 UTC

Add TODO about keeping a hashmap for display name disambiguation.

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