Skip to content

Commit

Permalink
Merge pull request #11736 from nextcloud/backport/11733/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(conversation): skip unread marker increasing from notification
  • Loading branch information
Antreesy authored Mar 7, 2024
2 parents 6fa969f + d930ec1 commit de82969
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 @@ -673,6 +673,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 de82969

Please sign in to comment.