matrix.org/content/blog/2023/10/2023-10-13-twim.md

231 lines
15 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

+++
date = "2023-10-13"
title = "This Week in Matrix 2023-10-13"
path = "/blog/2023/10/13/this-week-in-matrix-2023-10-13"
[taxonomies]
author = ["Thib"]
category = ["This Week in Matrix"]
[extra]
image = "https://matrix.org/blog/img/matrix-logo.png"
+++
## Matrix Live
{{ youtube_player(video_id="8xxS_TqR-Ls") }}
## Dept of Spec 📜
[Andrew Morgan (anoa)](https://matrix.to/#/@andrewm:element.io) reports
> Here's your weekly spec update! The heart of Matrix is the specification - and this is modified by Matrix Spec Change (MSC) proposals. Learn more about how the process works at https://spec.matrix.org/proposals.
>
>
> ### MSC Status
>
> **New MSCs:**
> * *There were no new MSCs this week.*
>
> **MSCs in Final Comment Period:**
> * *No MSCs are in FCP.*
>
> **Accepted MSCs:**
> * *No MSCs were accepted this week.*
>
> **Closed MSCs:**
> * *No MSCs were closed/rejected this week.*
>
> ### Spec Updates
>
> Pretty quiet in spec land this week, while IETF/MIMI continues to whir away in the background.
>
> In other news, the SCT expects to start focusing on the custom emote MSCs in the very near future! ✨
>
> ### Random MSC of the Week
>
> The random MSC of the week is... [MSC1921: Support cancelling 3pid validation sessions](https://github.com/matrix-org/matrix-spec-proposals/pull/1921)!
>
> This MSC is fairly straight-forward, proposing the addition of two new endpoints to allow you to immediately cancel a 3PID verification session on an identity server (instead of waiting for the automatic 24-hour timeout). This is particularly helpful if you put in the wrong email/phone number on your first attempt.
>
> I don't think Identity Servers get much love today, but this sounds like a no-brainer to add. Go forth and comment on if it sounds interesting to you!
<!-- more -->
## Dept of Servers 🏢
### Synapse ([website](https://github.com/matrix-org/synapse/))
Synapse is a Matrix homeserver implementation developed by the matrix.org core team
[Olivier 'reivilibre'](https://matrix.to/#/@reivilibre.element:librepush.net) announces
> This week in Synapse-land, we released version 1.94.0 of Synapse. This version includes a security fix for a medium-severity denial of service vulnerability ([GHSA-5chr-wjw5-3gq4](https://github.com/matrix-org/synapse/security/advisories/GHSA-5chr-wjw5-3gq4) / [CVE-2023-45129](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45129)), so please do consider updating!
> Other than that, this release brings back the ability to view common plain text formats and common image formats inline in the browser instead of downloading them to disk when accessing them from the media repository. This will be appreciated most by bridged users, but can also be pleasant in some other use cases. There are also some minor performance improvements and other minor, internal, changes.
## Dept of Bridges 🌉
### Out Of Your Element
[cadence_test](https://matrix.to/#/@cadence_test:cadence.moe) reports
> My new bridge is now generally available! Out Of Your Element is a new Matrix-Discord bridge focused on efficiency, accuracy, and feature coverage.
>
> ### Some bits from the readme...
>
> **Why a new bridge?**
>
> * Modern: Supports new Discord features like replies, threads and stickers, and new Matrix features like edits, spaces and space membership.
> * Efficient: Special attention has been given to memory usage, database indexes, disk footprint, runtime algorithms, and queries to the homeserver.
> * Reliable: Any errors on either side are notified on Matrix and can be retried.
> * Tested: A test suite and code coverage make sure all the logic works.
> * Latest API: Being on the latest Discord API version lets it access all features, without the risk of deprecated API versions being removed.
>
> **What works?**
>
> Messages, edits, deletions, text formatting, spoilers, emojis, emoji sprite sheets, reactions, mentions, smart mentions, m.mentions, replies, threads, stickers, attachments, embeds, guild-space syncing, channel-room syncing, emoji list syncing, [and more.](https://gitdab.com/cadence/out-of-your-element/src/branch/main/docs/user-guide.md) Yes, this is all supported _right now!_
>
> ### Stable?
>
> The bridge is stable. I switched from Half-Shot's bridge to OOYE for my personal use more than a month ago and I haven't run into any serious issues. While occasional glitches do happen, they are easy to deal with by capturing the problematic event and adding it as an automated test case to ensure it does not happen again in the future.
>
> I have been consistently working on the bridge for the last 5 months. A few people have already started running their own copy of the bot too. I am still updating the code with new niceties and bug fixes. I'm particularly interested in improving moderation for larger community servers. If you think OOYE is right for your server, or if you're not sure yet, join the discussion and feel free to suggest features. :)
>
> Repo: https://gitdab.com/cadence/out-of-your-element
> Chat: @cadence:cadence.moe (say you're interested in OOYE)
> Discussion space: [#out-of-your-element:cadence.moe](https://matrix.to/#/#out-of-your-element:cadence.moe)
## Dept of Clients 📱
### Nheko ([website](https://nheko-reborn.github.io))
Desktop client for Matrix using Qt and C++17.
[Nico](https://matrix.to/#/@deepbluev7:neko.dev) announces
> Now that it is getting colder and darker, I find myself nestling in front of the screen again and trying to tan in the comfortable light it emits at night. Creepy descriptions aside, we merged a larger rework of our message rendering this week. You will mostly not notice a difference, however it solves a lot of glitches we had with our own layouting code. I could go into a lot of details on how the actual message delegate is structured and how we now manually instantiate reply and event and calculate the combined size, however if that interests you, I suggest you instead come and talk to us in [#nheko:nheko.im](https://matrix.to/#/#nheko:nheko.im) or you dive directly into the [code](https://nheko.im/nheko-reborn/nheko/-/blob/master/src/timeline/EventDelegateChooser.h). As a user you may notice some regressions, specifically about double click or slide to reply. We might bring those back eventually, but we need to see, how to approach that better.
>
> With that rework out of the way, we also fixed a few performance issues, where an animated image scrolled offscreen (into our offscreen buffer to enable smooth scrolling) would still consume a constant amount of CPU. Similarly the rainfall effect used to constantly use some CPU as well. On my laptop that meant a constant 10% of CPU usage, which I first blamed on Qt6, but in the end turned out to be a bit of both. Nheko is now back to the usual 0.6% CPU usage with 5 syncs per second in a debug build. This should significantly improve battery life and bring us back to where we were before.
>
> Furthermore we merged a lot of open PRs in the last few weeks, including fixes to the powerlevel indicator size, text scrolling on mobile, polish to the room directory dialog, global "hidden events" settings, ways to reset to the default font, more consistent naming of the example user and a few more random fixes.
>
> Additionally the apple silicon builds now include a new enough Qt version, so that they work again if you download the nightlies.
>
> That's all I have for you today. Maybe we only need a few more bug fixes to actually make a new release finally!
### Element X iOS ([website](https://github.com/vector-im/element-x-ios))
A total rewrite of Element-iOS using the Matrix Rust SDK underneath and targeting devices running iOS 16+.
[Ștefan](https://matrix.to/#/@stefan.ceriu:matrix.org) announces
> Happy Friday everyone! Cant let too much time pass without parallels to everyones favourite homonym movie, right? Right!? ʿ⬤ᱼ⬤ʾ Here we go:
>
> Nebuchadnezzar 🚀has been smooth sailing for the past week and we're happy to report that:
>
> * Mention pills 💊 with user “operator” suggestions are almost here [1](https://github.com/vector-im/element-x-ios/pull/1859), [2](https://github.com/vector-im/element-x-ios/pull/1863), [3](https://github.com/vector-im/element-x-ios/pull/1874), [4](https://github.com/vector-im/element-x-ios/pull/1880), [5](https://github.com/vector-im/element-x-ios/pull/1891)
> * We are developing new security measures to protect our communications from Agent Smith. You will be able to lock the application behind a [PIN or Biometrics](https://github.com/vector-im/element-x-ios/pull/1876)
> * The Oracle has revealed that voice messages are still in their Element [1](https://github.com/vector-im/element-x-ios/pull/1873), [2](https://github.com/vector-im/element-x-ios/pull/1887)
> * We applied some serious wire-foo and [fixed the glitch](https://github.com/vector-im/element-x-ios/pull/1867) that was preventing us from forwarding messages
> * We've made certain fixes to ensure that offline mode works properly so we can resist even when not in the Matrix
>
> "See you in the real world" 👋
### Element Web/Desktop ([website](https://github.com/vector-im/element-web))
Secure and independent communication, connected via Matrix. Come talk with us in [#element-web:matrix.org](https://matrix.to/#/#element-web:matrix.org)!
[Danielle](https://matrix.to/#/@daniellekirkwood:one.ems.host) reports
> * Were still working hard, writing tests, fixing bugs, and making improvements to our notifications. Well keep working on it.
> * Along with bug smashing (notifications or otherwise) weve also been working on some other exciting improvements:
> - We have a new translation system! This past week we finished moving over our strings to our new translation and localisation tool which will help us to ensure our content between platforms matches where possible.
> - Were making Element easier to navigate, understand, and much nicer to look at. In the previous few weeks weve been updating our room header (see that in Labs). Along with that weve now been improving our right pane, so the room experience is much smoother.
> - Along with those visuals weve been moving our OIDC work forwards.
## Dept of SDKs and Frameworks 🧰
### Rory&::LibMatrix
[Emma [it/its]](https://matrix.to/#/@emma:rory.gay) reports
> This week was quite calm as I spent some time working on other projects using LibMatrix.
>
> ## Improvements
> * (Attempt to) fix the command handler in the bot extension not exiting in a timely fashion when shutting down
> * Fix event posts erroneously including null values by specifying default ignore condition
> * Make initial sync detection more reliable by disabling timeout during initial sync, and checking for 5 "empty" (re-serialised being <250 characters) sync responses
> - This was an issue with eg. Conduit splitting up initial sync into multiple syncs
> * Add option to join existing room if a room already exists with a given alias
> - Technically slows down room creation as a call is made to alias resolving endpoint
> - Thinking about removing this and making users handle it themselves, or providing a utility function (`JoinOrCreateRoomAsync`)
> * Improve error handling to handle a case where a server throws an exception but doesn't specify any response body (encountered with Conduit)
> - This is done by checking content.Length == 0, and if so, throwing a `MatrixException` with code `M_UNKNOWN`, where the error message indicates that the server returned no content
> * Added `GetStateOrNullAsync` as wrapper around `GetStateAsync` that catches an `M_NOT_FOUND` error and returns null instead of throwing an exception
>
> ***And, as always:***
> * The code is available at [my CGit domain](https://cgit.rory.gay/matrix/LibMatrix.git)
> - CGit is a frontend I've set up for our repos, you can still find the plain git link at [my git domain](https://git.rory.gay/matrix/LibMatrix.git/)
> - All contributions are more than welcome, be it documentation, code, anything! Perhaps, example usecases, bots, ...?
> * Discussion, suggestions and ideas are welcome in [#libmatrix:rory.gay](https://matrix.to/#/#libmatrix:rory.gay) (Space: [#mru-space:rory.gay](https://matrix.to/#/#mru-space:rory.gay))
### matrix-rust-sdk ([website](https://github.com/matrix-org/matrix-rust-sdk))
Next-gen crypto-included SDK for developing Clients, Bots and Appservices; written in Rust with bindings for Node, Swift and WASM
[Jonas Platte](https://matrix.to/#/@jplatte:flipdot.org) reports
> Over the last two weeks,
>
> * we made [a](https://github.com/matrix-org/matrix-rust-sdk/pull/2619) [bunch](https://github.com/matrix-org/matrix-rust-sdk/pull/2630) [of](https://github.com/matrix-org/matrix-rust-sdk/pull/2631) [progress](https://github.com/matrix-org/matrix-rust-sdk/pull/2695) [on](https://github.com/matrix-org/matrix-rust-sdk/pull/2696) [widgets](https://github.com/matrix-org/matrix-rust-sdk/pull/2705)
> * we added [a high-level method for editing to the timeline API](https://github.com/matrix-org/matrix-rust-sdk/pull/2614)
> * we [improved our internal testing APIs](https://github.com/matrix-org/matrix-rust-sdk/pull/2622)
> * we [improved performance of `latest_event`](https://github.com/matrix-org/matrix-rust-sdk/pull/2587)
> * we made lots of improvements to read receipts in the timeline (contributed by [Kévin Commaille](https://github.com/zecakeh/), thanks!)
> * and as always we also fixed lots of bugs, too many to list :)
## Dept of Interesting Projects 🛰️
[Du](https://matrix.to/#/@du:dkwc.org) reports
> Since some of you DMed me asking to bring back the Tech News feed, here it is: [#tech-news:uxn.one](https://matrix.to/#/#tech-news:uxn.one)
> It pulls in technology news using an RSS bot for easy discovery of news articles wherever you have access to Matrix. This time, only the bot is allowed to post to the main feed, so it won't devolve into chaos.
## Dept of Ping
Here we reveal, rank, and applaud the homeservers with the lowest ping, as measured by [pingbot](https://github.com/maubot/echo), a [maubot](https://github.com/maubot/maubot) that you can host on your own server.
### [#ping:maunium.net](https://matrix.to/#/#ping:maunium.net)
Join [#ping:maunium.net](https://matrix.to/#/#ping:maunium.net) to experience the fun live, and to find out how to add YOUR server to the game.
|Rank|Hostname|Median MS|
|:---:|:---:|:---:|
|1|plocki.org|307|
|2|wcore.org|375.5|
|3|maunium.net|431|
|4|damaj.tech|446|
|5|nerdhouse.io|463.5|
|6|tcpip.uk|468|
|7|matrix.org|476|
|8|ilmari.org|487.5|
|9|casavant.org|957|
|10|herkinf.de|1010|
### [#ping-no-synapse:maunium.net](https://matrix.to/#/#ping-no-synapse:maunium.net)
Join [#ping-no-synapse:maunium.net](https://matrix.to/#/#ping-no-synapse:maunium.net) to experience the fun live, and to find out how to add YOUR server to the game.
|Rank|Hostname|Median MS|
|:---:|:---:|:---:|
|1|spqr2gang.com|244|
|2|herkinf.de|412|
|3|matrix.its-tps.fr|558|
|4|inu.is|587|
|5|l1qu1d.net|972.5|
|6|shiftsystems.net|2669|
|7|littlevortex.net|2943|
## That's all I know
See you next week, and be sure to stop by [#twim:matrix.org](https://matrix.to/#/#twim:matrix.org) with your updates!