Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Automatically hide read posts on Reddit #3146

Open
wants to merge 132 commits into
base: master
Choose a base branch
from

Conversation

bobobo1618
Copy link

This addresses #3119.

When a user scrolls past a post, it is added to an in-memory queue of posts waiting to be hidden. Whenever the user performs an action that would load more posts (like switching subreddits or scrolling some more), all of the posts in the queue are hidden server-side and the queue is empty.

This ensures that a user will only ever see the same post once.

I also tried to make the code I was touching a little bit cleaner.

I'm not very experienced with Java so let me know if my code is terrible.

This is intended to be a starting point, I don't expect anything to be merged right away. There isn't even an option to toggle this behaviour yet.

@Tensounder54
Copy link
Collaborator

So the first thing we'd need to look at befor considering a merge like this is, as you said a toggle. This tech might also be able to be used with Synccit to ensure that seen posts are hidden. It's a good idea but realistically, we'd need to see a toggle before we could consider the PR.

@bobobo1618
Copy link
Author

(Finally) added a toggle.

TacoTheDank and others added 23 commits August 2, 2020 21:33
Replace deprecated Html#fromHtml with HtmlCompat#fromHtml
…RenameOption

Fixes Haptic-Apps#3187 by hiding option to rename multireddit
Collapse deleted and removed comments by default Haptic-Apps#2951
Fixes Haptic-Apps#3185: AlertDialog gives option to save multireddit upon exiting
This reverts commit 5e94e1e (Reason: Some icons are acting up with shading and not shading, this is temporary)
ccrama and others added 30 commits November 7, 2020 23:13
…migration

Fix gifdeliverynetwork redirection
…-stuck

Fixes notification getting stuck on 'downloading' after a sucessful download
…ed into the Reddit redesign, Fixed RGB_8888 on SubsamplingScaleImageView
…o-logsub-crash

Fix crash when toolbox config doesn't have values
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants