From f706ed17d0bc1cdae0372b8987f56fa0c545229c Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Tue, 27 Dec 2022 10:38:53 -0800 Subject: [PATCH] Minor fix for view fetching data --- js/main.js | 3 +++ js/ui/state.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index fbdb75e..70da67d 100644 --- a/js/main.js +++ b/js/main.js @@ -19,6 +19,9 @@ const SID_PROFILES = "profiles"; const SID_THREAD = "thread"; const SID_FRIENDS = "friends"; +// TODO notifications view needs to show replys to threads without mentions not +// sure how to achieve this just yet + // This is our main entry. // https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event addEventListener('DOMContentLoaded', (ev) => { diff --git a/js/ui/state.js b/js/ui/state.js index 7ccabfc..0bfbd3d 100644 --- a/js/ui/state.js +++ b/js/ui/state.js @@ -20,11 +20,11 @@ function view_timeline_apply_mode(model, mode, opts={}) { return; // Fetch history for certain views - if (mode == VM_THREAD || mode == VM_USER) { + if (mode == VM_THREAD) { view_show_spinner(true); fetch_thread_history(thread_id, model.pool); } - if (pubkey) { + if (pubkey && pubkey != model.pubkey) { view_show_spinner(true); fetch_profile(pubkey, model.pool); }