What's new in v3.13.0
This release ships the full multi-role system, significantly expanded webhook integration, several new UX features, and a handful of bug fixes across chat, voice, and the admin panel.
Added
- #5341: Multi-role assignments per user. Users can now hold multiple roles in the same channel or category scope simultaneously. The "Assign Role" modal replaces the single dropdown with a checkbox list — it pre-checks every role the user already holds and diffs on confirm, so one click both assigns new roles and revokes removed ones. The Role Assignment Center (RAC) config pane now shows a per-role card list with state indicators (held / pending add / pending remove / edited), a Configure button that opens a level + permissions editor with an optional apply-to-sub-channels toggle, and an add-role dropdown for assigning additional roles to the same scope. Voice users carry a full
roles[]array; in chat, the author's primary badge continues to use the highest role with a+Nsuffix when more roles are held (hover shows the full list). The All Members admin view and profile popup both show the complete role set. A one-time admin notice explains the system on first login. - #5340: DM auto-cleanup notice banner. When
cleanup_enabledis on with a non-zerocleanup_max_age_days, every DM channel shows a one-line banner under the header: "Messages older than N days are auto-deleted on this server." Reacts live to setting changes and is hidden in regular channels and on the welcome screen. - Admin settings — Server Updates moved to top of sidebar. The section was buried below Backup with no sidebar link; it now sits first above Branding.
Fixed
- Admin settings — action buttons were stretched full-width. "Manage Sounds", "Manage Emojis", "Manage Stickers", "Manage Roles", "View Bans", "View Deleted Users", and "View All Members" buttons had
btn-fullapplied; removed so they size to content and sit beside each other in a row. - #5294: Admin-configurable login session duration. New
session_duration_dayssetting (1–365, default 7) replaces the hard-codedexpiresIn: '7d'on every JWT signing site. Existing tokens keep their original expiry. Thanks @Amnibro. - Webhook integration expansion. Per-event subscriptions (
message,reaction-added,member-joined, or*); HMAC signature header upgraded tosha256=<hex>underX-Haven-SignatureplusX-Haven-Event; one automatic retry on 5xx/network failures; per-webhook delivery health fields (last_delivery_status,last_delivery_at,last_delivery_error,failure_count); newreaction-addedandmember-joinedevent types;test-webhookadmin socket event; inboundreply_tosupport; inboundavatar_urlper-message override. Existing webhooks default to*so nothing breaks on upgrade. - #5337: Link previews exhausted their rate-limit budget on chat re-renders. Rate limiter was running before the cache lookup, so cached previews still burned a token; budget doubled (30 → 60); client now keeps a 10-minute in-memory cache plus per-URL in-flight Promise dedup so concurrent re-renders share one request.
- Phantom taskbar overlay badge with nothing visible to clear. Collapsed category labels now render an unread count bubble (previously the short-circuit skipped them, so their unread children counted toward the desktop badge but showed nothing in the sidebar). Muted channels no longer count toward the badge or tab title.
- #5342: Media bundled with a text message was blocked by slow mode. Text + queued images fired two events — the text consumed the slow-mode tick and the images immediately hit the cooldown. Images sent as part of a combined call now carry
bundled=trueand skip the gate server-side. Same fix in PiP DM queues. - False CRITICAL perf alerts when the window was in the background. Chromium throttles rAF to ~1 FPS when hidden, making the FPS monitor fire CRITICAL every 15 s on healthy instances. Frame counting and the baseline timer now pause while
document.hiddenis true. - #5280 (follow-up): Burn-on-read visual indicator and pagination edge cases. Sender no longer sees the "tap to view" placeholder on their own burn messages. A flame label now appears in the message header of every unstarted burn message (removed once the countdown pill takes over). Forward and backward scroll pagination now correctly wire burn behavior (
_wireBurnMessageswas missing from both pagination paths). - PiP DM and thread text inputs can now be resized vertically. Both inputs had
resize: nonewith a 120 px cap; changed toresize: vertical(200 px max, min-height keeps the handle visible). Send/emoji buttons stay anchored at the bottom; drag handle is center-aligned. - Role badges in chat messages were never displayed.
this.userswas never assigned — the correct stores arethis._lastOnlineUsersandthis.channelMembers. Role color on author names, role badges, and role icons in chat were silently broken. - Various fallout/matrix theme button contrast improvements; gear menu anchoring fix in the profile popup;
getUserAllRolesdeduplication (same role in two channels no longer renders twice in tooltips/badges).