From a9cf2d4c70885c9f2adafdf09283e7dc3a6a8279 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 22 Aug 2026 11:06:10 +0200 Subject: [PATCH] Fix current account --- src/components/page/channel/TextChannel.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/page/channel/TextChannel.tsx b/src/components/page/channel/TextChannel.tsx index 33638e2..fd2d0b4 100644 --- a/src/components/page/channel/TextChannel.tsx +++ b/src/components/page/channel/TextChannel.tsx @@ -131,9 +131,11 @@ export function TextMessage({ const currentAccount = appRef.current?.getAccount(); if (currentAccount) { - const pubKey = ed.getPublicKey(base58.decode(currentAccount.privateKey)); + const accountPubKey = ed.getPublicKey( + base58.decode(currentAccount.privateKey), + ); - if (pubKey === authorPubKey) { + if (base58.encode(accountPubKey) === message.author) { setAuthor(currentAccount.meta); } }