feat: combine user and channel emoji

This commit is contained in:
Alejandro Gomez 2023-06-24 11:42:32 +02:00
parent 4eb30813ed
commit 1116cef30f
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -108,7 +108,9 @@ function ChatZap({ ev }: { ev: TaggedRawEvent }) {
function WriteMessage({ link }: { link: NostrLink }) {
const [chat, setChat] = useState("");
const login = useLogin();
const emojis = useEmoji(login!.pubkey);
const userEmojis = useEmoji(login!.pubkey);
const channelEmojis = useEmoji(link.author!);
const emojis = userEmojis.concat(channelEmojis);
const names = emojis.map((t) => t.at(1));
async function sendChatMessage() {