Move the rest of the IS/email supported logic to AddressPickerDialog
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
194cd0a460
commit
043a8d35e6
2 changed files with 12 additions and 7 deletions
|
@ -43,10 +43,7 @@ function inviteMultipleToRoom(roomId, addrs) {
|
|||
export function showStartChatInviteDialog() {
|
||||
const AddressPickerDialog = sdk.getComponent("dialogs.AddressPickerDialog");
|
||||
|
||||
const validAddressTypes = ['mx-user-id'];
|
||||
if (MatrixClientPeg.get().getIdentityServerUrl()) {
|
||||
validAddressTypes.push('email');
|
||||
}
|
||||
const validAddressTypes = ['mx-user-id', 'email'];
|
||||
|
||||
Modal.createTrackedDialog('Start a chat', '', AddressPickerDialog, {
|
||||
title: _t('Start a chat'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue