Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested styled text not working #630

Open
2 tasks done
drikqlis opened this issue Dec 12, 2024 · 0 comments
Open
2 tasks done

Nested styled text not working #630

drikqlis opened this issue Dec 12, 2024 · 0 comments

Comments

@drikqlis
Copy link

The problem

Currently it appears that it is not possible to send messages using nested styled text. For example text that is both spoiler and monospaced. For example:

curl -k -X POST -H "Content-Type: application/json" -d '{"message": "||spoiler only||", "number": "redacted", "recipients": ["redacted"], "text_mode": "styled"}' 'redacted/v2/send'

This returns spoiler correctly.

curl -k -X POST -H "Content-Type: application/json" -d '{"message": "`monospace only`", "number": "redacted", "recipients": ["redacted"], "text_mode": "styled"}' 'redacted/v2/send'

This returns monospace correctly.

curl -k -X POST -H "Content-Type: application/json" -d '{"message": "||`spoiler and monospace`||", "number": "redacted", "recipients": ["redacted"], "text_mode": "styled"}' 'redacted/v2/send'

However when combining both options only spoiler is visible. Combining styles is possible in Signal app.
Would it be possible to allow these nested styles? Or is it possible now but requires some special escaping?

Are you using the latest released version?

  • Yes

Have you read the troubleshooting page?

  • Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

Normal Mode

What's the architecture of your host system?

x86-64

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant