mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
feat: reset reading progress controller on logout
- Add readingProgressController.reset() to handleLogout in App.tsx - Ensures reading progress data is cleared when user logs out - Consistent with other controllers (bookmarks, contacts, highlights)
This commit is contained in:
@@ -24,6 +24,7 @@ import { bookmarkController } from './services/bookmarkController'
|
||||
import { contactsController } from './services/contactsController'
|
||||
import { highlightsController } from './services/highlightsController'
|
||||
import { writingsController } from './services/writingsController'
|
||||
import { readingProgressController } from './services/readingProgressController'
|
||||
// import { fetchNostrverseHighlights } from './services/nostrverseService'
|
||||
import { nostrverseHighlightsController } from './services/nostrverseHighlightsController'
|
||||
import { nostrverseWritingsController } from './services/nostrverseWritingsController'
|
||||
@@ -145,6 +146,7 @@ function AppRoutes({
|
||||
bookmarkController.reset() // Clear bookmarks via controller
|
||||
contactsController.reset() // Clear contacts via controller
|
||||
highlightsController.reset() // Clear highlights via controller
|
||||
readingProgressController.reset() // Clear reading progress via controller
|
||||
showToast('Logged out successfully')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user