Specify valid address types to "Start a chat" dialog

fixes https://github.com/vector-im/riot-web/issues/5459
pull/21833/head
Luke Barnard 2018-05-16 18:57:53 +01:00
parent bf0ec249b6
commit fb79c57ec6
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export function showStartChatInviteDialog() {
title: _t('Start a chat'),
description: _t("Who would you like to communicate with?"),
placeholder: _t("Email, name or matrix ID"),
validAddressTypes: ['mx-user-id', 'email'],
button: _t("Start Chat"),
onFinished: _onStartChatFinished,
});