You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Specify valid address types to "Start a chat" dialog
fixes https://github.com/vector-im/riot-web/issues/5459
This commit is contained in:
@ -57,6 +57,7 @@ export function showStartChatInviteDialog() {
|
|||||||
title: _t('Start a chat'),
|
title: _t('Start a chat'),
|
||||||
description: _t("Who would you like to communicate with?"),
|
description: _t("Who would you like to communicate with?"),
|
||||||
placeholder: _t("Email, name or matrix ID"),
|
placeholder: _t("Email, name or matrix ID"),
|
||||||
|
validAddressTypes: ['mx-user-id', 'email'],
|
||||||
button: _t("Start Chat"),
|
button: _t("Start Chat"),
|
||||||
onFinished: _onStartChatFinished,
|
onFinished: _onStartChatFinished,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user