mirror of https://github.com/readrops/Readrops.git
Fix existing items not having their read state updated after syncing
This commit is contained in:
parent
3a0667a10c
commit
dfaec3bdb1
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue