24
submitted 1 year ago by 3v1n0@feddit.it to c/thunder_app@lemmy.world

It's something I'm missing in all the apps I've tried so far, but it would be cool to be able to quickly see the new coments since last visit on a post.

I guess using different background would be enough and maybe provide a way to navigate between them.

top 4 comments
sorted by: hot top controversial new old
[-] MentalEdge@sopuli.xyz 3 points 1 year ago* (last edited 1 year ago)

This was added in #281 but the code is disabled due to the API we are using missing the ability to mark comments on a post as read. Or at least, we've not found how to do it.

Lemmy does not track which comments on a post are new, only how many there are. The Lemmy webUI is just highlighting any comments that have been made in the last 10 minutes.

[-] 3v1n0@feddit.it 1 points 1 year ago* (last edited 1 year ago)

For the reddit website I had an user script with a slider that was using the time of the last page visit... And that you could adjust.

So maybe something similar? Like the app remembers last time a post has been visited (with some garbage collection after a while), then the user can use a slider to highlight the new comments since X time.

Also if the API provides you the number, can't you just iterate back from the latest in time and count until you reach 0?

[-] MentalEdge@sopuli.xyz 1 points 1 year ago

That would be a cool way to do it actually.

[-] P3D7O@lemmy.world 1 points 1 year ago

I think cache the list of comments (if there's at least an unique identifier to use as reference) on viewed posts and compare to a new request could be a solution, but I don't know how the api works, so all this is assumptions on how I would handle this problem.. I think you would find a solution to this soon!

load more comments
view more: next ›
this post was submitted on 19 Jul 2023
24 points (100.0% liked)

Thunder App

2794 readers
1 users here now

An open-source, cross-platform Lemmy client for iOS and Android.

This community is intended to discuss features and feature suggestions for Thunder; as well as friendly, respectful talks about Lemmy in general.

Please use the GitHub repository linked below to submit bug reports, so keeping track of them is easier, and make sure to search first if you already can find an issue for your report.

If there are any developers who would like to contribute, feel free to reach out on GitHub!

General Links
Website: Link
GitHub Repository: Link
Matrix Space: Link

Android Releases
IzzyOnDroid: Link
Google Play: Link

iOS Releases
Apple App Store: Link
TestFlight Beta: Link

Related Communities
Nightly Community: Link

founded 1 year ago
MODERATORS