Skip to content

Commit

Permalink
chore(deps): fix NcRichContentEditable
Browse files Browse the repository at this point in the history
transform backend response for UserMention

Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Oct 10, 2023
1 parent 7aeae7f commit ea667ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,11 @@ export default {
const possibleMentions = response.data.ocs.data

possibleMentions.forEach(possibleMention => {
// TODO fix backend for userMention
if (!possibleMention.title && possibleMention.label) {
possibleMention.title = possibleMention.label
}

// Set icon for candidate mentions that are not for users.
if (possibleMention.source === 'calls') {
possibleMention.icon = 'icon-user-forced-white'
Expand Down

0 comments on commit ea667ff

Please sign in to comment.