Skip to content

Commit

Permalink
Ignore 'free trial ending soon' sidebar item
Browse files Browse the repository at this point in the history
  • Loading branch information
czukowski committed Feb 19, 2024
1 parent c163a05 commit 6f4e136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/slack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "slack",
"name": "Slack",
"version": "1.6.0",
"version": "1.6.1",
"license": "MIT",
"config": {
"serviceURL": "https://{teamId}.slack.com",
Expand Down
2 changes: 1 addition & 1 deletion recipes/slack/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down

0 comments on commit 6f4e136

Please sign in to comment.