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;
|
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 {
|
Self {
|
||||||
pool,
|
pool,
|
||||||
debug,
|
debug,
|
||||||
|
|||||||
Reference in New Issue
Block a user