From 55f6a94c18167ae25df0bcdaa0a85e996f65caa4 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Tue, 3 Sep 2024 11:31:56 -0700 Subject: [PATCH] Supply default timeline for mobile app if empty Fixes ([#284]) --- src/app.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app.rs b/src/app.rs index ea9b835..a309e9d 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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,