fix: repost notifications not appearing in notifications tab #3448
+230
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes repost notifications not appearing in the notifications tab. The root cause was that the home feed deduplication logic for reposts was incorrectly placed before the context switch in
handle_text_event(), causing notification events to be filtered out when the same note had already been reposted in the home feed.This fix moves the dedup logic inside the
.homecase where it belongs. Notifications should always show reposts of YOUR posts, even if the same note was already reposted by someone else in your home feed.Changes
.homeswitch case with guard clause (nevernesting pattern)Checklist
Standard PR Checklist
Closes:orFixes:tags in the commit messages wherever applicable, or made sure those are not needed. See Submitting patchesTest report
Device: iPhone 17 Pro Simulator
iOS: iOS 26.0
Damus: Commit 3ac9e1b (this PR)
Setup: Test account with reposts of authored notes
Steps:
Results:
screenshot
Other notes
#qfilter implementation).homecaseCloses #3165