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: add InAConferenceCall activity when availability is Busy #2585

Merged
merged 9 commits into from
Jul 14, 2023
19 changes: 12 additions & 7 deletions packages/mgt-components/src/components/mgt-person/mgt-person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,25 +746,30 @@ export class MgtPerson extends MgtTemplatedComponent {
switch (availability) {
case 'Available':
switch (activity) {
case 'Available':
presenceIcon = getSvg(SvgIcon.PresenceAvailable);
break;
case 'OutOfOffice':
presenceIcon = getSvg(SvgIcon.PresenceOofAvailable);
break;
// OutOfOffice and Uknowns
case 'Available':
default:
Mnickii marked this conversation as resolved.
Show resolved Hide resolved
presenceIcon = getSvg(SvgIcon.PresenceAvailable);
break;
}
break;
case 'Busy':
switch (activity) {
case 'OutOfOffice':
case 'OnACall':
presenceIcon = getSvg(SvgIcon.PresenceOofBusy);
break;
// Busy,InACall,InAConferenceCall,InAMeeting, Unknown
case 'Busy':
case 'InACall':
case 'InAMeeting':
case 'InAConferenceCall':
default:
Mnickii marked this conversation as resolved.
Show resolved Hide resolved
gavinbarron marked this conversation as resolved.
Show resolved Hide resolved
presenceIcon = getSvg(SvgIcon.PresenceBusy);
break;
case 'OutOfOffice':
case 'OnACall':
presenceIcon = getSvg(SvgIcon.PresenceOofBusy);
break;
}
break;
case 'DoNotDisturb':
Expand Down
Loading