1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Fix m.id.phone spec compliance

This commit is contained in:
Michael Telatynski
2020-06-12 22:36:50 +01:00
parent 9eb965878a
commit 01a71dab8c

View File

@@ -95,6 +95,8 @@ export default class Login {
identifier = { identifier = {
type: 'm.id.phone', type: 'm.id.phone',
country: phoneCountry, country: phoneCountry,
phone: phoneNumber,
// XXX: Synapse historically wanted `number` and not `phone`
number: phoneNumber, number: phoneNumber,
}; };
} else if (isEmail) { } else if (isEmail) {