mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Remove unnecessary things
This commit is contained in:
parent
5192003e17
commit
acbba44c1d
1 changed files with 2 additions and 2 deletions
|
@ -590,7 +590,7 @@ const MessageComposer = () => {
|
||||||
const tombstoneEvent = useRoomState(room, "m.room.tombstone", "")
|
const tombstoneEvent = useRoomState(room, "m.room.tombstone", "")
|
||||||
if (tombstoneEvent !== null) {
|
if (tombstoneEvent !== null) {
|
||||||
const content = tombstoneEvent.content
|
const content = tombstoneEvent.content
|
||||||
const hasReplacement = content.replacement_room?.startsWith("!") ?? false
|
const hasReplacement = content.replacement_room?.startsWith("!")
|
||||||
let link: JSX.Element | null = null
|
let link: JSX.Element | null = null
|
||||||
if (hasReplacement) {
|
if (hasReplacement) {
|
||||||
const via = getServerName(tombstoneEvent.sender)
|
const via = getServerName(tombstoneEvent.sender)
|
||||||
|
@ -601,7 +601,7 @@ const MessageComposer = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const url = `matrix:roomid/${content.replacement_room.slice(1)}?via=${via}`
|
const url = `matrix:roomid/${content.replacement_room.slice(1)}?via=${via}`
|
||||||
link = <a className="hicli-matrix-uri-room-alias" href={url} onClick={handleNavigate}>
|
link = <a href={url} onClick={handleNavigate}>
|
||||||
Join the new one here
|
Join the new one here
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue