Skip to content

Commit

Permalink
fix(conversation): skip unread marker increasing from notification, i…
Browse files Browse the repository at this point in the history
…f already done

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy authored and backportbot[bot] committed Mar 7, 2024
1 parent 6fa969f commit d930ec1
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 d930ec1

Please sign in to comment.