Repository navigation
1.13
New
- New messages line. When you open a room with unread messages, a line marks the first one. While that line is out of sight, a bar at the top ("14 new messages since 18:40 · Jump to first") takes you up to it. It counts messages from others only, not edits, reactions or replies inside a thread. Your own last message counts as where you had read up to.
- Code blocks. Code blocks are coloured by language, with a Copy button. The colouring is done in your browser from the text alone, so a message cannot inject anything through it. The language you write after the opening fence (for example ```python) is now sent too, as Element and other apps do, so they colour your code as well. Colours pass the contrast checks in both themes.
- Blurred previews for what you send. Pictures and videos you send now carry a blurhash, so Element and other apps show a blurred preview while yours load. In encrypted rooms the preview is encrypted along with the message. The encoder is in the app's own code (no new dependency) and produces exactly the same output as the reference implementation.
Changed
- Aligned layout. The message toolbar no longer covers your own messages. It sits on the empty side, or above the message when the window is too narrow.
Verified
- New unit tests cover the new-messages count, the code tokenizer, keeping the language on a code block, and the blurhash encoder, which is checked against the reference implementation's output for the same pixels.
- New browser tests cover: the line and the bar (including the jump); colouring, Copy and contrast in both themes; a picture and a video sent through the app carrying a valid preview; and the toolbar placement at 1280 and 422 px.
- The type check, unit tests and the full browser suite pass.