Skip to content

Commit

Permalink
dont add !
Browse files Browse the repository at this point in the history
  • Loading branch information
jay3332 committed Dec 4, 2023
1 parent 378b34d commit 1b5bc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/messaging/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export default function Chat(props: { channelId: number, guildId?: number, title

const symbol = MAPPING.find(([_, ty]) => type === ty)![0]
const text = messageInputRef!.innerText!
const before = text.slice(0, wordIndex) + `<${symbol}!${target.id}>`
const before = text.slice(0, wordIndex) + `<${symbol}${target.id}>`
const after = text.slice(wordIndex + value.length + 1)
messageInputRef!.innerText = before + after

Expand Down

0 comments on commit 1b5bc17

Please sign in to comment.