notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 7fa18fa5f79ad739c4fcea077dafd5304c0a395a
parent 989f88c989f5d6ec85f719efab6f80fb1a95ee00
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Sep 2024 11:49:15 -0700

Merge 'Supply default timeline for mobile app if empty' (#285)

Ken Sedgwick (1):
      Supply default timeline for mobile app if empty

Diffstat:
Msrc/app.rs | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/app.rs b/src/app.rs @@ -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,