element-meta icon indicating copy to clipboard operation
element-meta copied to clipboard

The telephone entry field is not disabled when telephone-to-account linkage is.

Open RokeJulianLockhart opened this issue 10 months ago • 1 comments

Steps to reproduce

  1. Visit https://chat.fedoraproject.org/#/home.

  2. Select mx_UserMenu_userAvatar.

  3. Select mx_UserMenu_iconSettings.

  4. Navigate to "Phone number":

    <input type="text" label="Phone Number" autocomplete="tel-national" placeholder="Phone Number" id="mx_Field_17" value="" style="">
    
  5. Select +44.

  6. Enter 7840875616.

Outcome

What did you expect?

xor:

  1. The telephone number should be accepted.
  2. The entry form for a telephone number should be disabled or hidden.

What happened instead?

As @hoamer rather incomprehensibly reports at matrix-org/synapse/issues/4630, the user sees:

MatrixError: [403] Account phone numbers are not authorized on this server

Operating system

cpe:/o:fedoraproject:fedora:41

Browser information

firefox-135.0.1-1.fc41.x86_64

URL for webapp

chat.fedoraproject.org/#/home:~:text=Sign%20out-,Personal%20info,-Email%20addresses

Application version

Fedora Chat version: 1.11.92
Crypto version: Rust SDK 0.9.0 (5de53c7), Vodozemac 0.8.1

Homeserver

fedora.im

Will you send logs?

Yes

RokeJulianLockhart avatar Feb 28 '25 15:02 RokeJulianLockhart

I don't see a Matrix API specific for MSISDN input. Only one for MSISDN+Email. So the client has no way of knowing it is disabled without you trying with a valid phone number which will receive a text message if it isn't disabled.

https://spec.matrix.org/v1.13/client-server-api/#m3pid_changes-capability

t3chguy avatar Feb 28 '25 15:02 t3chguy