Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: zapping too fast causes duplicate notifications #1812

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

Soxasora
Copy link
Member

@Soxasora Soxasora commented Jan 6, 2025

Description

Fixes #1809
Checks if there are new ItemActs before triggering notifyZapped, avoiding duplicate notifications

Screenshots

IMG_69E9C8279350-1

Additional Context

n/a

Checklist

Are your changes backwards compatible? Please answer below:
Yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
7, sent a lot of zaps really really fast!

For frontend changes: Tested on mobile, light and dark mode? Please answer below:
n/a

Did you introduce any new environment variables? If so, call them out explicitly here:
No

@Soxasora Soxasora marked this pull request as draft January 6, 2025 23:07
@Soxasora Soxasora marked this pull request as ready for review January 6, 2025 23:35
@Soxasora Soxasora force-pushed the fix_duplicate_zap_notifications branch from af09fd0 to 58c0a9b Compare January 6, 2025 23:56
Copy link
Member

@ekzyis ekzyis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did not test but looks good to me!

@huumn
Copy link
Member

huumn commented Jan 8, 2025

This risks missing a zap notification if the future zap is p2p and fails, but missing a zap is less buggy UX than duplicates. So we'll ship it.

@huumn huumn merged commit 466620f into stackernews:master Jan 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zapping too fast causes duplicate notifications
3 participants