mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Always suggest a pill for MXID-looking users
Part of https://github.com/vector-im/riot-web/issues/12440
This commit is contained in:
parent
d324dfaceb
commit
00cc253594
@ -645,6 +645,13 @@ export default class InviteDialog extends React.PureComponent {
|
||||
} catch (e) {
|
||||
console.warn("Non-fatal error trying to make an invite for a user ID");
|
||||
console.warn(e);
|
||||
|
||||
// Add a result anyways, just without a profile
|
||||
r.results.push({
|
||||
user_id: term,
|
||||
display_name: term,
|
||||
avatar_url: null,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user