Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webexMember): updated member name handling #845

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/WebexMember/WebexMember.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default function WebexMember({
const members = useMembers(destinationID, destinationType);
const member = members
.find((itemMember) => itemMember.ID === personID);
const memberName = member?.name || displayName;
const organization = useOrganization(orgID);

const isMuted = member?.muted;
const isSpeaking = member?.speaking;
const isExternal = orgID !== undefined && me.orgID !== undefined && me.orgID !== orgID;
Expand All @@ -64,7 +64,7 @@ export default function WebexMember({
<WebexAvatar personID={personID} displayStatus={displayStatus} className={sc('avatar')} />
<div className={sc('details')}>
<div className={sc('name')}>
{(displayName ?? <Spinner size={18} />) || <i>Name not available</i>}
{(memberName ?? <Spinner size={18} />) || <i>Name not available</i>}
{isGuest && <span className={sc('guest')}> (Guest)</span>}
</div>
{roles.length > 0 && <div className={sc('roles')}>{roles.join(', ')}</div>}
Expand Down