Skip to content

Commit

Permalink
fix(unifiedSearch): Prevent broken avatars for federated users in peo…
Browse files Browse the repository at this point in the history
…ple filter

Signed-off-by: fenn-cs <[email protected]>
  • Loading branch information
nfebe committed Apr 25, 2024
1 parent eb58f8e commit cb12f43
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 cb12f43

Please sign in to comment.