Fix current account

This commit is contained in:
2026-08-22 11:06:10 +02:00
parent 21261098dc
commit a9cf2d4c70
+4 -2
View File
@@ -131,9 +131,11 @@ export function TextMessage({
const currentAccount = appRef.current?.getAccount(); const currentAccount = appRef.current?.getAccount();
if (currentAccount) { 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); setAuthor(currentAccount.meta);
} }
} }