Minor fix for view fetching data

This commit is contained in:
Thomas Mathews 2022-12-27 10:38:53 -08:00
parent 1847b64855
commit f706ed17d0
2 changed files with 5 additions and 2 deletions

View file

@ -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);
}