Fix email lookup in invite dialog (#10150)
This commit is contained in:
parent
18c9b2bed2
commit
6ab44fd2cb
2 changed files with 72 additions and 33 deletions
|
@ -684,7 +684,8 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
display_name: profile.displayname,
|
||||
avatar_url: profile.avatar_url,
|
||||
}),
|
||||
userId: lookup.mxid,
|
||||
// Use the search term as identifier, so that it shows up in suggestions.
|
||||
userId: term,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -934,7 +935,7 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
<DMRoomTile
|
||||
member={r.user}
|
||||
lastActiveTs={lastActive(r)}
|
||||
key={r.userId}
|
||||
key={r.user.userId}
|
||||
onToggle={this.toggleMember}
|
||||
highlightWord={this.state.filterText}
|
||||
isSelected={this.state.targets.some((t) => t.userId === r.userId)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue