Skip to content

Commit

Permalink
feat: fix hidden bot comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Jan 7, 2025
1 parent 29e4cd4 commit 9520dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/home/rendering/render-github-notifications.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { organizationImageCache } from "../fetch-github/fetch-data";
import { GitHubAggregated } from "../github-types";
import { getTimeAgo } from "./utils";
import { notificationsContainer } from "../home";
import { notificationsContainer, showBotNotifications } from "../home";
import { getGitHubAccessToken } from "../getters/get-github-access-token";
import { Octokit } from "@octokit/rest";

Expand Down Expand Up @@ -194,7 +194,7 @@ async function updateLatestCommentUrls(notificationsToUpdate: { element: HTMLEle
avatarUrl = data.user.avatar_url; // get the comment author's avatar
commentBody = data.body; // get the comment body text

if(userType === "Bot") {
if(userType === "Bot" && !showBotNotifications) {
element.style.display = "none";
}

Expand Down

0 comments on commit 9520dfc

Please sign in to comment.