Skip to content

Commit

Permalink
double-check message existence on end headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ahubmann committed Aug 31, 2024
1 parent 9a152b0 commit 68b8a44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/chrome/content/threadvis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ export class ThreadVis {
}

onEndHeaders() {
this.#setSelectedMessage(this.#window.gMessage, true);
// make sure we correctly underline recipients (as header is re-drawn)
this.#visualisation.recolourAuthors();
if (this.#window.gMessage) {
this.#setSelectedMessage(this.#window.gMessage, true);
// make sure we correctly underline recipients (as header is re-drawn)
this.#visualisation.recolourAuthors();
}
}

get window() {
Expand Down

0 comments on commit 68b8a44

Please sign in to comment.