Default logout experience to trending timeline + remove cache when logout
This commit is contained in:
parent
a88b9a7fd9
commit
375ea665b4
|
@ -61,7 +61,7 @@ struct TimelineTab: View {
|
|||
if client.isAuth {
|
||||
timeline = lastTimelineFilter
|
||||
} else {
|
||||
timeline = .federated
|
||||
timeline = .trending
|
||||
}
|
||||
}
|
||||
Task {
|
||||
|
@ -125,8 +125,10 @@ struct TimelineTab: View {
|
|||
private var timelineFilterButton: some View {
|
||||
headerGroup
|
||||
timelineFiltersButtons
|
||||
listsFiltersButons
|
||||
tagsFiltersButtons
|
||||
if client.isAuth {
|
||||
listsFiltersButons
|
||||
tagsFiltersButtons
|
||||
}
|
||||
localTimelinesFiltersButtons
|
||||
tagGroupsFiltersButtons
|
||||
Divider()
|
||||
|
@ -325,7 +327,7 @@ struct TimelineTab: View {
|
|||
if client.isAuth, canFilterTimeline {
|
||||
timeline = lastTimelineFilter
|
||||
} else if !client.isAuth {
|
||||
timeline = .federated
|
||||
timeline = .trending
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ import SwiftUI
|
|||
private(set) var datasource = TimelineDatasource()
|
||||
private let cache = TimelineCache()
|
||||
private var isCacheEnabled: Bool {
|
||||
canFilterTimeline && timeline.supportNewestPagination
|
||||
canFilterTimeline && timeline.supportNewestPagination && client?.isAuth == true
|
||||
}
|
||||
|
||||
@ObservationIgnored
|
||||
|
|
Loading…
Reference in New Issue