remove unnecessary FilterState::NeedsRemote filter

all NeedsRemote states are contact lists currently, which is
managed by `Accounts`

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-12 16:52:01 -04:00
parent 46633d0513
commit b5d56f7831
3 changed files with 12 additions and 20 deletions

View File

@@ -92,7 +92,7 @@ impl FilterStates {
/// [`FilterState`] tracks this.
#[derive(Debug, Clone)]
pub enum FilterState {
NeedsRemote(Vec<Filter>),
NeedsRemote,
FetchingRemote(FetchingRemoteType),
GotRemote(GotRemoteType),
Ready(Vec<Filter>),
@@ -139,8 +139,8 @@ impl FilterState {
/// for home timelines where we don't have a contact list yet. We
/// need to fetch the contact list before we have the right timeline
/// filter.
pub fn needs_remote(filter: Vec<Filter>) -> Self {
Self::NeedsRemote(filter)
pub fn needs_remote() -> Self {
Self::NeedsRemote
}
/// We got the remote data. Local data should be available to build