Minor fix for view fetching data
This commit is contained in:
parent
1847b64855
commit
f706ed17d0
2 changed files with 5 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue