Supply default timeline for mobile app if empty

Fixes ([#284])
This commit is contained in:
Ken Sedgwick 2024-09-03 11:31:56 -07:00
parent 2603d08d1a
commit 55f6a94c18
No known key found for this signature in database
GPG Key ID: DBD2AF0849D711A9

View File

@ -637,6 +637,14 @@ impl Damus {
}
}
if timelines.is_empty() {
let filter = Filter::from_json(include_str!("../queries/timeline.json")).unwrap();
timelines.push(Timeline::new(
ColumnKind::Generic,
FilterState::ready(vec![filter]),
));
}
Self {
pool,
is_mobile,