Fix existing items not having their read state updated after syncing

This commit is contained in:
Shinokuni 2020-02-15 14:48:35 +01:00
parent 3a0667a10c
commit dfaec3bdb1
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ public class FreshRSSRepository extends ARepository<FreshRSSAPI> {
if (!initialSync && feedId > 0 && database.itemDao().remoteItemExists(freshRSSItem.getId(), feedId)) {
database.itemDao().setReadState(freshRSSItem.getId(), freshRSSItem.isRead());
break;
continue;
}
Item item = ItemMatcher.freshRSSItemtoItem(freshRSSItem, feedId);

View File

@ -308,7 +308,7 @@ public class NextNewsRepository extends ARepository<NextNewsAPI> {
if (!initialSync && feedId > 0 && database.itemDao().remoteItemExists(String.valueOf(nextNewsItem.getId()), feedId)) {
database.itemDao().setReadState(String.valueOf(nextNewsItem.getId()), !nextNewsItem.isUnread());
break;
continue;
}
Item item = ItemMatcher.nextNewsItemToItem(nextNewsItem, feedId);