mirror of
https://github.com/damus-io/notedeck.git
synced 2024-09-16 20:03:28 +00:00
Merge 'Supply default timeline for mobile app if empty' (#285)
Ken Sedgwick (1): Supply default timeline for mobile app if empty
This commit is contained in:
commit
7fa18fa5f7
@ -644,6 +644,14 @@ impl Damus {
|
||||
|
||||
let debug = parsed_args.debug;
|
||||
|
||||
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,
|
||||
debug,
|
||||
|
Loading…
Reference in New Issue
Block a user