Try to resolve emails before creating a DM (#10164)

This commit is contained in:
Michael Weimann 2023-02-16 14:17:43 +01:00 committed by GitHub
parent f0359a5c18
commit 8feed1a225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 319 additions and 7 deletions

View file

@ -469,10 +469,14 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
}
private startDm = async (): Promise<void> => {
this.setState({
busy: true,
});
try {
const cli = MatrixClientPeg.get();
const targets = this.convertFilter();
startDmOnFirstMessage(cli, targets);
await startDmOnFirstMessage(cli, targets);
this.props.onFinished(true);
} catch (err) {
logger.error(err);