Skip to content

Commit

Permalink
[FIX] Spotlight results showing usernames instead of real names (#25471)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc authored and d-gubert committed May 13, 2022
1 parent 27e04c4 commit f43fbc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/meteor/client/sidebar/search/SearchList.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const SearchList = forwardRef(function SearchList({ onClose }, ref) {
const itemIndexRef = useRef(0);

const sidebarViewMode = useUserPreference('sidebarViewMode');
const showRealName = useSetting('UI_Use_Real_Name');
const useRealName = useSetting('UI_Use_Real_Name');

const sideBarItemTemplate = useTemplateByViewMode();
const avatarTemplate = useAvatarTemplate();
Expand All @@ -166,11 +166,11 @@ const SearchList = forwardRef(function SearchList({ onClose }, ref) {
t,
SideBarItemTemplate: sideBarItemTemplate,
avatarTemplate,
showRealName,
useRealName,
extended,
sidebarViewMode,
}),
[avatarTemplate, extended, items, showRealName, sideBarItemTemplate, sidebarViewMode, t],
[avatarTemplate, extended, items, useRealName, sideBarItemTemplate, sidebarViewMode, t],
);

const changeSelection = useMutableCallback((dir) => {
Expand Down

0 comments on commit f43fbc6

Please sign in to comment.