diff --git a/src/components/page/channel/TextChannel.tsx b/src/components/page/channel/TextChannel.tsx index fd2d0b4..af8c0c4 100644 --- a/src/components/page/channel/TextChannel.tsx +++ b/src/components/page/channel/TextChannel.tsx @@ -106,7 +106,7 @@ export function TextMessage({ minute: "2-digit", }); - const [author, setAuthor] = useState(null); + const author = appRef.current?.server?.users[message.author]; const [verified, setVerified] = useState(true); @@ -128,17 +128,6 @@ export function TextMessage({ authorPubKey, ), ); - - const currentAccount = appRef.current?.getAccount(); - if (currentAccount) { - const accountPubKey = ed.getPublicKey( - base58.decode(currentAccount.privateKey), - ); - - if (base58.encode(accountPubKey) === message.author) { - setAuthor(currentAccount.meta); - } - } }, []); return (