Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Release v0.3.7 #2859

Merged
merged 21 commits into from
Feb 24, 2025
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
cc51d86
fix(mobile): auth redirect and 2fa support (#2829)
hyoban Feb 21, 2025
c0afb39
feat(mobile): render as read (#2835)
hyoban Feb 21, 2025
ac1332e
chore: fix bug where clicking the Dock icon cannot reopen the window …
songhanlin Feb 21, 2025
7cfa888
chore: fix bug where Follow window always stays on top (#2837)
songhanlin Feb 21, 2025
8dbb634
feat(mobile): add native iOS toast module with SPIndicator
Innei Feb 21, 2025
15e3e1c
refactor(entries): remove isArchived parameter from entry fetching lo…
hyoban Feb 21, 2025
c4c9ceb
refactor(mobile): simplify scroll-to-top implementation
Innei Feb 21, 2025
ae89d8d
refactor(mobile): simplify entry list rendering and context management
Innei Feb 21, 2025
48461f1
feat(mobile): add reusable MediaCarousel component
Innei Feb 21, 2025
577f07f
feat(mobile): enhance player UI with floating tab bar and control imp…
Innei Feb 21, 2025
38e8c6c
fix(modal): adjust modal header drag and resize behavior
Innei Feb 22, 2025
79631bb
fix(mobile): remove shadow from PlayerTabBar
Innei Feb 22, 2025
3b5fb5f
fix(mobile): disable scroll-to-top for timeline view selector
Innei Feb 23, 2025
5a3825e
refactor(mobile): remove legacy scroll-to-top (#2855)
lawvs Feb 23, 2025
2fc2056
chore: auto submit
DIYgod Feb 23, 2025
8a0049d
fix(mobile): revert ref bind for nav scroll view ref (#2856)
lawvs Feb 23, 2025
aeaa29b
feat: bring back lists in views
DIYgod Feb 23, 2025
6fe8dc9
fix: lists fetch
DIYgod Feb 24, 2025
d07ec23
feat: optional daily
DIYgod Feb 24, 2025
0aa0dac
chore(release): release v0.3.7
DIYgod Feb 24, 2025
2f5d6c2
docs: update changelog
DIYgod Feb 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(mobile): render as read (#2835)
  • Loading branch information
hyoban authored Feb 21, 2025
commit c0afb39788f72ef29bd814d97752fe438c3027e3
11 changes: 10 additions & 1 deletion apps/mobile/src/modules/entry-list/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function useOnViewableItemsChanged(
idExtractor: (item: ViewToken) => string = defaultIdExtractor,
): (info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => void {
const markAsReadWhenScrolling = useGeneralSettingKey("scrollMarkUnread")
const markAsReadWhenRendering = useGeneralSettingKey("renderMarkUnread")

const [stableIdExtractor] = useState(() => idExtractor)

Expand All @@ -23,7 +24,15 @@ export function useOnViewableItemsChanged(
unreadSyncService.markEntryAsRead(stableIdExtractor(item))
})
}

if (markAsReadWhenRendering) {
viewableItems
.filter((item) => item.isViewable)
.forEach((item) => {
unreadSyncService.markEntryAsRead(stableIdExtractor(item))
})
}
},
[markAsReadWhenScrolling, stableIdExtractor],
[markAsReadWhenRendering, markAsReadWhenScrolling, stableIdExtractor],
)
}
Loading