Add federated room detail page and improve address parsing in invites
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m18s

This commit is contained in:
2026-02-27 17:42:37 +01:00
parent 9814150ba8
commit ed97587248
11 changed files with 226 additions and 19 deletions

View File

@@ -216,7 +216,9 @@ export default function RoomDetail() {
const handleFedInvite = async (e) => {
e.preventDefault();
if (!fedAddress.includes('@')) {
// Accept @user@domain or user@domain — must have a domain part
const normalized = fedAddress.startsWith('@') ? fedAddress.slice(1) : fedAddress;
if (!normalized.includes('@') || normalized.endsWith('@')) {
toast.error(t('federation.addressHint'));
return;
}