SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
386 stars 49 forks source link

Escape @room in reply fallback #178

Closed Bubu closed 1 year ago

Bubu commented 1 year ago

Is your feature request related to a problem? Please describe. When replying to a message containing @room as a room moderator/admin you'll ping the room, even if the original message didn't (because it was sent by a non-moderator).

Describe the solution you'd like Nheko adds a zero-width non-breaking space (U+2060) between the @ and room to prevent the fallback pinging the room.

U+2060 Word-Joiner ⁠ representative by no visible character, it prohibits a line break at its position.

Additional Clarification While for SC this could also be solved by not evaluating the reply fallback for pings (maybe that's how it's done already?) this feature request is mainly targetted at helping other clients to not evaluate the ping, even if they don't implement rendering replies properly.