Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Always suggest a pill for MXID-looking users
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Feb 21, 2020
1 parent d324dfa commit 00cc253
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/views/dialogs/InviteDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
}

Expand Down

0 comments on commit 00cc253

Please sign in to comment.