fix: add mention marker

This commit is contained in:
Alejandro Gomez 2023-01-23 16:45:27 +01:00
parent 002082d345
commit 40e47b8be3
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -58,7 +58,7 @@ export default function useEventPublisher() {
try {
const hex = bech32ToHex(match);
const idx = ev.Tags.length;
ev.Tags.push(new Tag(["e", hex], idx));
ev.Tags.push(new Tag(["e", hex, "mention"], idx));
return `#[${idx}]`
} catch (error) {
return match