Every thread in a channel in one searchable list, display names in any language, and Haven now keeps disk space in reserve so a full server stays fixable.
This release also picks up eight changes that were pushed after 3.47.0 and never made it into a release of their own.
Added
Every thread in a channel, in one list (#5506). Threads were only reachable from the message that started them, so finding one again meant scrolling the channel back to wherever it began. There is now a thread button beside the files and media button in the channel header. It lists every thread with who started it, how many replies it has, when it was last active and a preview of the opening message, and a search box filters on the text or the author. Picking one jumps to the message and opens the thread. Sorted by most recent reply, so whatever is still alive sits at the top. Not shown in DMs, since that content is encrypted and the server has nothing readable to list. Collected and mocked up by @birdcrazy.
Display names in any script (#5509). Display names were limited to English letters and digits, so anyone whose name is not written in Latin script had to transliterate it. They now accept letters, numbers and accent marks from any script, so Chinese, Japanese, Korean, Cyrillic, Arabic, Hebrew and the rest all work, and the 2 to 20 limit counts characters as you see them rather than as the computer stores them. What the old rule was quietly protecting is kept: no dots or slashes, so a display name still cannot be a working link, and no invisible characters, so two names cannot look identical while being different and nobody can flip the sidebar backwards. Requested by @Amatsutsumi.
A role permission for seeing every channel (#5512). Linking channels to a role only covers the channels you remember to tick, so a server-wide Mod role still needed adding to each new channel by hand. There is now a permission that means exactly what it says: holders see every channel, including ones created later, without anyone keeping a list. Only the server owner can grant it, since it reveals private channels, and taking it away takes the access back rather than leaving a former moderator sitting in every private channel. Contributed by @Amnibro.
Haven now keeps disk space in reserve (#5505). A full disk did not just stop uploads, it wedged the server: deleting a message is itself a write, so an admin could not clear the files that filled the disk, and the way out was closed. Haven now refuses to hand out the last of the space, keeping 512 MB free by default so there is always room to delete things. Set HAVEN_DISK_RESERVE_MB if that does not suit your setup. Chat is deliberately unaffected, since a server that stops accepting messages is a poor way to learn your disk is full. Reported by @KentuckyFriedBlyat.
Invite buttons on the member lists (#5496). Inviting someone used to mean finding the invite section in Settings. There are now buttons in the user list and All Members, shown only to people who are actually allowed to invite. Contributed by @birdcrazy.
A cancel button on uploads in progress. The progress bar above the composer had no way to stop an upload once it started, so a wrong or oversized file had to finish before anything else could be sent. Cancelling aborts every file in flight, including the rest of a queued batch.
Fixed
Signing in through Authentik and other providers that keep the trailing slash (#5501, #12). Haven was stripping the trailing slash off the identity provider address when it read the setting back, so what you typed was stored correctly but never matched what the provider published, and sign-in failed with the provider unreachable. It now works whether or not the address ends in a slash, and the sign-in token is checked against the provider's own spelling. Editing that slash no longer stops Haven recognising people who have already signed in with it. Found and fixed by @birdcrazy, reported by @RCCore and @jesjhoward.
A role editor button that did nothing, with no error (#5511). On a server whose files were updated without the server itself being restarted, the newer buttons in Role Management quietly did nothing: no toast, no error, no saved change. Those actions now say plainly when the server has not answered and point at the real cause. Contributed by @Amnibro.
Haven refuses to start on a half-updated install rather than misbehaving later (#5513). Updating by copying a new release over an old folder never deletes anything, so a file that Haven split into a folder years ago can still be sitting there, and it wins. One self-hoster had been running months-old chat code underneath completely current files, which explained a long trail of unrelated-looking problems. Haven now checks for this at startup and stops with the file to delete, instead of booting a mix of versions. Contributed by @Amnibro.
A double divider in the channel right-click menu (#5502). The separator above Rename Channel and Create Sub-channel stayed put even when neither was shown. Contributed by @birdcrazy.
Moderators who can ban can now unban. Undoing a ban was the last thing in the ban family still restricted to admins, so a moderator could ban someone, see them in the list, turn down their appeal, and then be told only an admin could reverse it, which left the person who made the mistake unable to fix it. It carries the same rank rule as banning: you can lift your own bans and those of anyone below you, but not an admin's and not a peer's.
Nesting a channel under a parent needed the wrong permission (#5500, #5492). Anyone allowed to create channels could make a top-level channel and move it under a parent they had nothing to do with, which is what the manage-sub-channels permission exists to prevent. Moving a channel in now costs the same permission on the same parent as moving it out, in both directions. Reported and fixed with @birdcrazy.
Braid Layout: Join and Create a Channel came back, and the Encryption entry works (#5497). In the Braid layout those two sections could not be reopened once collapsed, and the Encryption menu entry did nothing at all. Contributed by @Amnibro, reported by @birdcrazy.
The new invite buttons could not be translated. They pointed at text that did not exist in the English file, and English is what every other language falls back to per phrase, so no locale could pick them up.
Documentation
A design for end-to-end encrypted group DMs (#5498). Group DMs do not exist yet, so this is a written plan rather than a feature: one encryption key per group per period, handed to each member over the private channel that already exists between them, replaced whenever the membership changes. Written by @Amnibro.
Upgrading
Replace your Haven folder with this release rather than copying files over the old one. Copying over the top leaves deleted files behind, and if one of them shadows a module folder Haven will now stop at startup and tell you which file to remove instead of running a mix of versions. Your data is untouched either way, since it lives outside the install folder.
Full changelog: https://github.com/ancsemi/Haven/blob/main/CHANGELOG.md