update channel notification

This commit is contained in:
Ren Amamiya
2023-05-31 18:25:59 +07:00
parent 118c9d931c
commit 4e132582b0
4 changed files with 70 additions and 16 deletions

View File

@@ -29,9 +29,11 @@ export function ChatsList() {
</div>
</>
) : (
chats.map((item) => (
<ChatsListItem key={item.sender_pubkey} data={item} />
))
chats.map((item) => {
if (account.pubkey !== item.sender_pubkey) {
return <ChatsListItem key={item.sender_pubkey} data={item} />;
}
})
)}
</div>
);