fix: Don't issue a disambiguation in case of a unique display name.
parent
eeebb43e32
commit
7abdeed449
|
@ -475,8 +475,7 @@ impl Room {
|
||||||
};
|
};
|
||||||
|
|
||||||
match users_with_same_name.len() {
|
match users_with_same_name.len() {
|
||||||
0 => HashMap::new(),
|
0 | 1 => HashMap::new(),
|
||||||
1 => disambiguate_with(users_with_same_name, |m: &RoomMember| m.name()),
|
|
||||||
_ => disambiguate_with(users_with_same_name, |m: &RoomMember| m.unique_name()),
|
_ => disambiguate_with(users_with_same_name, |m: &RoomMember| m.unique_name()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue