mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 02:03:40 -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", "")
|
||||
if (tombstoneEvent !== null) {
|
||||
const content = tombstoneEvent.content
|
||||
const hasReplacement = content.replacement_room?.startsWith("!") ?? false
|
||||
const hasReplacement = content.replacement_room?.startsWith("!")
|
||||
let link: JSX.Element | null = null
|
||||
if (hasReplacement) {
|
||||
const via = getServerName(tombstoneEvent.sender)
|
||||
|
@ -601,7 +601,7 @@ const MessageComposer = () => {
|
|||
})
|
||||
}
|
||||
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
|
||||
</a>
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue