ui: customizable tabs per column view
This reduces the number of choices the user needs to make. Some of these filters were redundant anyways. This also saves memory. Universe: Notes Notificaitons: Notes & Replies Everything else: Notes, Notes & Replies Changelog-Changed: Simplified tab selections on some columns Fixes: https://github.com/damus-io/notedeck/issues/517
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::{column::Columns, timeline::ViewFilter, Result};
|
||||
use crate::{column::Columns, Result};
|
||||
use nostrdb::{Ndb, NoteKey, Transaction};
|
||||
use notedeck::{CachedNote, NoteCache, UnknownIds};
|
||||
use tracing::error;
|
||||
@@ -37,7 +37,7 @@ pub fn get_unknown_ids(
|
||||
let mut new_cached_notes: Vec<(NoteKey, CachedNote)> = vec![];
|
||||
|
||||
for timeline in columns.timelines() {
|
||||
for noteref in timeline.notes(ViewFilter::NotesAndReplies) {
|
||||
for noteref in timeline.all_or_any_notes() {
|
||||
let note = ndb.get_note_by_key(txn, noteref.key)?;
|
||||
let note_key = note.key().unwrap();
|
||||
let cached_note = note_cache.cached_note(noteref.key);
|
||||
|
||||
Reference in New Issue
Block a user