element-hq / element-hq/element-x-android

Element X cannot create rooms when server_name contains a port number

Open
#6,618 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
2.4k
Forks
624
Avg merge
1d 14h
Merged PRs (30d)
149

Description

### Describe the bug

When using a Matrix server whose server_name includes a port number (e.g., example.com:4224), Element X fails to create rooms. The room alias is generated as #roomname:example.com:4224, which the client's regex does not recognize as a valid room alias format.

### Steps to reproduce

1. Configure a Matrix server with server_name = "example.com:4224" (port number included)
2. Log in to Element X using this server
3. Attempt to create a new room
4. Observe the error

### Expected behavior

Element X should accept room aliases that include port numbers, as this is a valid Matrix server name format according to the Matrix specification.

### Actual behavior

Room creation fails with an error indicating the room alias format is invalid.

### Environment

Element X version: 26.04.2 (202604020)
Android version: 15
Device: Redmi Note 12 Turbo

### Additional context

I am a student and not very familiar with these technical details. This issue report was drafted with the help of an AI assistant. I will try my best to provide any additional information if needed, but please note that I can only reply on weekends due to school commitments.

Thank you for your understanding!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.