You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-01 21:21:58 +03:00
Add RoomMember UTs. Fix disambiguation bug. Add CHANGELOG.
This commit is contained in:
@@ -142,7 +142,7 @@ function calculateDisplayName(member, event, roomState) {
|
||||
e.getSender() !== selfUserId;
|
||||
}
|
||||
);
|
||||
if (stateEvents.length > 1) {
|
||||
if (stateEvents.length > 0) {
|
||||
// need to disambiguate
|
||||
return displayName + " (" + selfUserId + ")";
|
||||
}
|
||||
|
Reference in New Issue
Block a user