feat: polish

This commit is contained in:
2024-01-19 08:24:13 +07:00
parent 16efd495a0
commit f65175f11e
10 changed files with 114 additions and 27 deletions

View File

@@ -169,8 +169,11 @@ export const LumeProvider = ({ children }: PropsWithChildren<object>) => {
);
activitySub.addListener("event", async (event: NDKEvent) => {
if (event.pubkey === storage.currentUser.pubkey) return;
setUnreadActivity((state) => state + 1);
const profile = await ark.getUserProfile(event.pubkey);
switch (event.kind) {
case NDKKind.Text:
return await sendNativeNotification(