Skip to content

Commit

Permalink
Merge pull request #594 from privacy-tech-lab/issue-590
Browse files Browse the repository at this point in the history
fix mute funtionality
  • Loading branch information
SebastianZimmeck authored Oct 6, 2024
2 parents 8cdf712 + 6095791 commit 79bac7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/indexed-db/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ const notify = async (host) => {
*/
const notifyPersonal = async (host, evidence) => {
if (Notification.permission == "granted") {
const keyword = (await watchlistKeyval.get(evidence.watchlistHash.toString())).keyword;
const keywordDetails = await watchlistKeyval.get(evidence.watchlistHash.toString());
if (!keywordDetails.notification) return;
const keyword = keywordDetails.keyword;
const displayName = privacyLabels[evidence.permission]["types"][evidence.typ].displayName;
const evidenceList = `\n${displayName} (${keyword.slice(0, 3)}**)`;

Expand Down

0 comments on commit 79bac7e

Please sign in to comment.