yang991178 / fluent-reader-lite

Simplistic mobile RSS client built with Flutter
https://hyliu.me/fluent-reader-lite/
BSD 3-Clause "New" or "Revised" License
1.42k stars 90 forks source link

Miniflux API Support #99

Closed jeankhawand closed 1 year ago

jeankhawand commented 1 year ago
jeankhawand commented 1 year ago

at this stage I am getting duplicate iids added after binary search which results in duplicate items on second refresh https://github.com/yang991178/fluent-reader-lite/blob/dbd02217701c7c100a42547657eca94ed65ab405/lib/models/feeds_model.dart#L71-L79

jeankhawand commented 1 year ago

at this stage I am getting duplicate iids added after binary search which results in duplicate items on second refresh

https://github.com/yang991178/fluent-reader-lite/blob/dbd02217701c7c100a42547657eca94ed65ab405/lib/models/feeds_model.dart#L71-L79

image

At end of binary search it is pushing element at max and since it's a growableList we end up with duplicate values – we do need to check if at max we have same element before pushing it