minor fixes
This commit is contained in:
@@ -28,7 +28,7 @@ export const HideMessageButton = ({ id }: { id: string }) => {
|
||||
|
||||
// publish note
|
||||
pool.publish(event, MESSAGE_RELAYS);
|
||||
}, [id, pool, MESSAGE_RELAYS]);
|
||||
}, [activeAccount.pubkey, activeAccount.privkey, id, pool]);
|
||||
|
||||
return (
|
||||
<AlertDialog.Root>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ChannelMessageItem from '@components/channels/messages/item';
|
||||
import { ChannelMessageItem } from '@components/channels/messages/item';
|
||||
|
||||
import { sortedChannelMessagesAtom } from '@stores/channel';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import { messageParser } from '@utils/parser';
|
||||
|
||||
import { memo } from 'react';
|
||||
|
||||
const ChannelMessageItem = ({ data }: { data: any }) => {
|
||||
export const ChannelMessageItem = memo(function ChannelMessageItem({ data }: { data: any }) {
|
||||
const content = messageParser(data.content);
|
||||
|
||||
return (
|
||||
@@ -31,6 +31,4 @@ const ChannelMessageItem = ({ data }: { data: any }) => {
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(ChannelMessageItem);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user