From 6f4e136309c455b82898747278df72a0dab69e01 Mon Sep 17 00:00:00 2001 From: Korney Czukowski Date: Mon, 19 Feb 2024 22:35:19 +0100 Subject: [PATCH] Ignore 'free trial ending soon' sidebar item --- recipes/slack/package.json | 2 +- recipes/slack/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/slack/package.json b/recipes/slack/package.json index 15138e633..404f6e931 100644 --- a/recipes/slack/package.json +++ b/recipes/slack/package.json @@ -1,7 +1,7 @@ { "id": "slack", "name": "Slack", - "version": "1.6.0", + "version": "1.6.1", "license": "MIT", "config": { "serviceURL": "https://{teamId}.slack.com", diff --git a/recipes/slack/webview.js b/recipes/slack/webview.js index f6b5af340..d7b4ea0a5 100644 --- a/recipes/slack/webview.js +++ b/recipes/slack/webview.js @@ -10,7 +10,7 @@ const SELECTOR_CHANNELS_UNREAD = module.exports = Ferdium => { const getMessages = () => { const directMessages = document.querySelectorAll( - `${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"]):not([data-sidebar-link-id="Pdms"])`, + `${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"]):not([data-sidebar-link-id="Pdms"]):not([data-sidebar-link-id="Ppaid-benefits"])`, ).length; const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length -