Try to resolve emails before creating a DM (#10164)
This commit is contained in:
parent
f0359a5c18
commit
8feed1a225
6 changed files with 319 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue