element-hq / element-hq/element-ios
Sending message to room with a slash in the room ID fails
- Dominant language
- Swift
- Stars
- 1.8k
- Forks
- 544
- PR merge metrics
- PR metrics pending
Description
[#test:maunium.net](https://matrix.to/#/#test:maunium.net)'s room ID is `!test/v6:maunium.net`. When trying to send a message to the room, Element iOS fails with "Messages not sent". Other clients like Element Web and Android work fine.
The problem is most likely that someone forgot to URL-encode the room ID (it's an opaque string, so you can't assume that it's url-safe even if they usually are)

Contributor guide
Research direction
Reproduce the failure in Element iOS by sending a message to the room ID `!test/v6:maunium.net`, then trace how that room ID is placed into the send-message request. Done means messages send successfully for room IDs containing `/`, while existing room messaging continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100