Skip to content

Commit 4adcded

Browse files
committed
1 parent 9e45d04 commit 4adcded

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/renderer/src/store/entry/store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class EntryActions {
161161
})
162162

163163
if (data.data) {
164-
this.upsertMany(data.data)
164+
this.upsertMany(data.data, { isArchived })
165165
}
166166
return data
167167
}
@@ -241,7 +241,7 @@ class EntryActions {
241241
})
242242
}
243243

244-
upsertMany(data: CombinedEntryModel[]) {
244+
upsertMany(data: CombinedEntryModel[], options?: { isArchived?: boolean }) {
245245
const feeds = [] as FeedOrListRespModel[]
246246
const entries = [] as EntryModel[]
247247
const inboxes = [] as InboxModel[]
@@ -346,7 +346,7 @@ class EntryActions {
346346
}
347347
}
348348

349-
if (item.settings && draft.flatMapEntries[item.entries.id]) {
349+
if (item.settings && draft.flatMapEntries[item.entries.id] && !options?.isArchived) {
350350
draft.flatMapEntries[item.entries.id].settings = item.settings
351351
}
352352
}

0 commit comments

Comments
 (0)