Insert starred items when synchronizing with a Nextcloud News account

This commit is contained in:
Shinokuni 2024-06-20 15:45:15 +02:00
parent 23fd22afff
commit f097edddbc
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ class NextcloudNewsRepository(
insertFolders(folders)
newFeedIds = insertFeeds(feeds)
insertItems(items, syncType == SyncType.INITIAL_SYNC)
val initialSync = syncType == SyncType.INITIAL_SYNC
insertItems(items, initialSync)
insertItems(starredItems, initialSync)
account.lastModified = newLastModified
database.newAccountDao().updateLastModified(newLastModified, account.id)