Skip to content

Commit

Permalink
fix(unifiedSearch): Prevent broken avatars for federated users
Browse files Browse the repository at this point in the history
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
Fenn-CS authored and susnux committed Apr 28, 2024
1 parent b081d3c commit a51ab47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/components/UnifiedSearch/SearchableList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
:wide="true"
@click="itemSelected(element)">
<template #icon>
<NcAvatar :user="element.user" :show-user-status="false" :hide-favorite="false" />
<NcAvatar v-if="element.isUser" :user="element.user" :show-user-status="false" />
<NcAvatar v-else
:is-no-user="true"
:display-name="element.displayName"
:show-user-status="false" />
</template>
{{ element.displayName }}
</NcButton>
Expand Down
1 change: 1 addition & 0 deletions core/src/views/UnifiedSearchModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ export default {
subname: contact.emailAddresses[0] ? contact.emailAddresses[0] : '',
icon: '',
user: contact.id,
isUser: contact.isUser,
}
})
},
Expand Down

0 comments on commit a51ab47

Please sign in to comment.