mirror of
https://github.com/readrops/Readrops.git
synced 2025-01-23 07:21:52 +01:00
Fix items not having their read state updated when already existing in db
This commit is contained in:
parent
4454c5c028
commit
9eb6df31b5
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user