Skip to content

Commit

Permalink
Merge pull request #11733 from nextcloud/fix/noid/doubled-unread-marker
Browse files Browse the repository at this point in the history
fix(conversation): skip unread marker increasing from notification
  • Loading branch information
nickvergessen authored Mar 7, 2024
2 parents dac6f7a + abd67ed commit 6d94f42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/store/conversationsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ const actions = {
}

const conversation = Object.assign({}, getters.conversations[token])
if (conversation.lastMessage.id === parseInt(messageId, 10)
|| conversation.lastMessage.timestamp >= Date.parse(notification.datetime) / 1000) {
// Already updated from other source, skipping
return
}

const actor = notification.subjectRichParameters.user || notification.subjectRichParameters.guest || {
type: 'guest',
Expand Down

0 comments on commit 6d94f42

Please sign in to comment.