Skip to content

Commit

Permalink
Handle when user already clicked elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
benbucksch committed Jan 13, 2025
1 parent f816d42 commit 754dd6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/frontend/Mail/LeftPane/LeftPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@
return;
}
lastPerson = person;
console.log("Searching for person", person.name);
let search = newSearchEMail();
search.includesPerson = person;
//let folder = new SavedSearchFolder(search);
//selectedFolder = folder;
if (lastPerson != person) { // User already clicked elsewhere.
return;
}
searchMessages = await search.startSearch();
}
Expand Down

0 comments on commit 754dd6e

Please sign in to comment.