Fix crash when trying to restore activity for non-pinned timeline
This commit is contained in:
parent
cce6413e2b
commit
2ed8d22899
|
@ -95,7 +95,10 @@ class TimelinesPageViewController: SegmentedPageViewController<TimelinesPageView
|
|||
return
|
||||
}
|
||||
let page = Page(mastodonController: mastodonController, timeline: timeline)
|
||||
selectPage(page, animated: false)
|
||||
// the pinned timelines may have changed after an iCloud sync, in which case don't restore anything
|
||||
if pages.contains(page) {
|
||||
selectPage(page, animated: false)
|
||||
}
|
||||
}
|
||||
|
||||
@objc private func customizePressed() {
|
||||
|
|
Loading…
Reference in New Issue