From 9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50 Mon Sep 17 00:00:00 2001 From: Korney Czukowski Date: Mon, 19 Feb 2024 22:35:19 +0100 Subject: Ignore 'free trial ending soon' sidebar item --- recipes/slack/package.json | 2 +- recipes/slack/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/slack') diff --git a/recipes/slack/package.json b/recipes/slack/package.json index 15138e6..404f6e9 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 f6b5af3..d7b4ea0 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 - -- cgit v1.2.3-70-g09d2