File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/renderer/src/store/subscription Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ class SubscriptionActions {
128
128
const state = get ( )
129
129
for ( const feedId in state . data ) {
130
130
if ( state . data [ feedId ] . view === view ) {
131
- feedUnreadActions . updateByFeedId ( feedId , 0 )
131
+ // We can not process this logic in local, so skip it. and then we will fetch the unread count from server.
132
+ ! filter && feedUnreadActions . updateByFeedId ( feedId , 0 )
132
133
entryActions . patchManyByFeedId ( feedId , { read : true } , filter )
133
134
}
134
135
}
@@ -154,7 +155,8 @@ class SubscriptionActions {
154
155
} ) ,
155
156
async ( ) => {
156
157
for ( const feedId of feedIds ) {
157
- feedUnreadActions . updateByFeedId ( feedId , 0 )
158
+ // We can not process this logic in local, so skip it. and then we will fetch the unread count from server.
159
+ ! filter && feedUnreadActions . updateByFeedId ( feedId , 0 )
158
160
entryActions . patchManyByFeedId ( feedId , { read : true } , filter )
159
161
}
160
162
if ( filter ) {
You can’t perform that action at this time.
0 commit comments