Skip to content

Commit f2209a8

Browse files
committed
Respect unread status from unsubscribed issues
1 parent b9e6e6d commit f2209a8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/core/src/helpers/github/shared.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ export function isItemRead(item: EnhancedItem | undefined) {
141141
if (latestDate === item.last_unread_at) return false
142142

143143
// workaround for notifications of unsubscribed issues
144-
if ('unread' in item && item.unread === false && !item.last_unread_at)
145-
return true
144+
if (
145+
latestDate === itemDate &&
146+
'unread' in item &&
147+
typeof item.unread === 'boolean'
148+
)
149+
return !item.unread
146150

147151
if (latestDate === itemDate) return false
148152

0 commit comments

Comments
 (0)