mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-20 16:54:20 +01: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user