Skip to content

Commit

Permalink
fix(NewMessage): don't replace id for mentions, if mentionId is not p…
Browse files Browse the repository at this point in the history
…rovided by server

Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Mar 11, 2024
1 parent 774e221 commit 7a471bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,8 @@ export default {
}

// Caching the user id data for each possible mention
possibleMention.id = possibleMention.mentionId
// mentionId should be the default match since 'federation-v1'
possibleMention.id = possibleMention.mentionId ?? possibleMention.id
this.userData[possibleMention.id] = possibleMention
})

Expand Down

0 comments on commit 7a471bb

Please sign in to comment.