fix: can not mark entry as unread, close #4039
This commit is contained in:
@@ -196,9 +196,15 @@ class UnreadSyncService {
|
||||
})
|
||||
|
||||
tx.request(async () => {
|
||||
await apiClient().reads.$post({
|
||||
json: { entryIds: [entryId] },
|
||||
})
|
||||
if (read) {
|
||||
await apiClient().reads.$post({
|
||||
json: { entryIds: [entryId] },
|
||||
})
|
||||
} else {
|
||||
await apiClient().reads.$delete({
|
||||
json: { entryId },
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
tx.rollback(() => {
|
||||
|
||||
Reference in New Issue
Block a user