Skip to content

Commit

Permalink
Merge pull request #8856 from nextcloud/backport/8828/stable3.4
Browse files Browse the repository at this point in the history
[stable3.4] Reflect read counter after marking all read
  • Loading branch information
GretaD authored Sep 12, 2023
2 parents 7365010 + 1fb9f44 commit 43da5a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,14 @@ export default {
)
}

const updated = Object.assign({}, mailbox)
updated.unread = 0

await markMailboxRead(mailboxId)
commit('updateMailbox', {
mailbox: updated,
})

dispatch('syncEnvelopes', {
accountId,
mailboxId,
Expand Down

0 comments on commit 43da5a8

Please sign in to comment.