Support E.164-based Matrix IDs (MSC4009)

This commit is contained in:
Aine
2024-12-11 18:24:08 +02:00
parent 402457640c
commit 4fd18007de
2 changed files with 1 additions and 2 deletions

View File

@@ -41,7 +41,6 @@ export function returnMXID(input: string | Identifier): string {
const homeserver = localStorage.getItem("home_server");
// Check if the input already looks like a valid MXID (i.e., starts with "@" and contains ":")
const mxidPattern = /^@[^@:]+:[^@:]+$/;
if (isMXID(input)) {
return input as string; // Already a valid MXID
}