forked from Mirrors/gomuks
web/util: decode fragment parts in matrix URIs
This commit is contained in:
parent
2c7ad651e4
commit
544bd17a1d
1 changed files with 4 additions and 4 deletions
|
@ -63,13 +63,13 @@ export function parseMatrixURI(uri: unknown): ParsedMatrixURI | undefined {
|
|||
params: parsed.searchParams,
|
||||
}
|
||||
if (type === "u") {
|
||||
output.identifier = `@${ident1}`
|
||||
output.identifier = `@${decodeURIComponent(ident1)}`
|
||||
} else if (type === "r") {
|
||||
output.identifier = `#${ident1}`
|
||||
output.identifier = `#${decodeURIComponent(ident1)}`
|
||||
} else if (type === "roomid") {
|
||||
output.identifier = `!${ident1}`
|
||||
output.identifier = `!${decodeURIComponent(ident1)}`
|
||||
if (subtype === "e") {
|
||||
output.eventID = `$${ident2}`
|
||||
output.eventID = `$${decodeURIComponent(ident2)}`
|
||||
}
|
||||
} else {
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue