Always suggest a pill for MXID-looking users

Part of https://github.com/vector-im/riot-web/issues/12440
pull/21833/head
Travis Ralston 2020-02-20 10:50:35 -07:00
parent d324dfaceb
commit 00cc253594
1 changed files with 7 additions and 0 deletions

View File

@ -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,
});
}
}