Fix items not having their read state updated when already existing in db

This commit is contained in:
Shinokuni 2020-01-13 15:05:51 +01:00
parent 4454c5c028
commit 9eb6df31b5
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ public class FreshRSSRepository extends ARepository<FreshRSSAPI> {
if (!initialSync && feedId > 0 && database.itemDao().remoteItemExists(item.getRemoteId(), feedId)) {
database.itemDao().setReadState(item.getRemoteId(), item.isRead());
break;
continue;
}
item.setFeedId(feedId);

View File

@ -297,7 +297,7 @@ public class NextNewsRepository extends ARepository<NextNewsAPI> {
//if the item already exists, update only its read state
if (!initialSync && feedId > 0 && database.itemDao().remoteItemExists(String.valueOf(item.getRemoteId()), feedId)) {
database.itemDao().setReadState(item.getRemoteId(), item.isRead());
break;
continue;
}
item.setFeedId(feedId);