element-hq / element-hq/element-android

Improve Slash command escaping

Open
#1,958 1 comment 2 reactions 0 assignees View on GitHub
A-Slash-Commands T-Enhancement Z-parity-with-web
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

Currently there is no possibility for a user to send a message starting with `/`, except if the message starts with `//`.

We should:
- [ ] Support escaping of `/`, using `\/` (so not be strictly equivalent to Element Web on this point, but let's assume that difference, I do not like escaping using `//`). In this case, the first `\` should be removed before sending the Event.
- [ ] Propose to send the message if the command is not supported (as per Element Web)

FTR on Element Web, we have:

image

- Supporting `/help` is out of scope for this issue

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.