You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03: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:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user