element-hq / element-hq/element-ios

Sending message to room with a slash in the room ID fails

Open
#3,626 0 comments 0 reactions 0 assignees View on GitHub
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)

![image](https://user-images.githubusercontent.com/4224639/92330929-6e46d180-f07b-11ea-9dcc-9cbfc7bd7e43.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.