Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

logic on "recent channels" #560

Open
ioeylim opened this issue Mar 29, 2024 · 1 comment
Open

logic on "recent channels" #560

ioeylim opened this issue Mar 29, 2024 · 1 comment

Comments

@ioeylim
Copy link
Contributor

ioeylim commented Mar 29, 2024

when you upload and remove an item from a channel, should the channel be also removed from the top of the list?

@0xTranqui
Copy link
Contributor

yea it should. we have to make the query + sort logic more sophisticated to support this. right now it looks up all channels and gets the most recent add from each, without looking if that add has been removed. since techicnally theres no way of knowing how many of the most "recent" adds per channel have been removed, we either need a higher constant (ex: 10 most recent adds instead of 1?) and then map through that, or go with a different approach which is just finding the most recent "Valid" add for a channel at time of the query

both of those need to be done with some level of max search limit to avoid really long loops

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants