feat: show top zappers #3
No reviewers
Labels
No Label
backend
bug
duplicate
enhancement
help wanted
invalid
needs:design
P1
P2
P3
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/zap.stream#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "verbiricha/stream:top-zappers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Builds on Kieran/stream#1
@ -37,1 +78,4 @@
const login = useLogin();
const events = messages.data ?? [];
const zaps = events
.filter((ev) => ev.kind === EventKind.ZapReceipt)
One problem here is that parseZap wont work unless we have the profile loaded, so we need a way to make sure that we're requesting those profiles otherwise the zaps will be invalid
Added loading when parse zap fails due to mising profile
d3917fc418
@ -38,0 +80,4 @@
const zaps = events
.filter((ev) => ev.kind === EventKind.ZapReceipt)
.map((ev) => parseZap(ev, System.ProfileLoader.Cache))
.filter((z) => z);
Missing filter
isValid
for those parsed zapsfixed.
@ -85,0 +145,4 @@
parsed.errors.includes("zap service pubkey doesn't match") &&
parsed.sender
) {
System.ProfileLoader.TrackMetadata(parsed.sender);
You should return a function here to cleanup the profile tracking
I will also extend the system package to allow async fetching of profiles to make it a bit easier
sounds good, added cleanup function return.