Skip to content

Commit

Permalink
fix: add InAConferenceCall activity when availability is Busy (#2585
Browse files Browse the repository at this point in the history
)

Add InAConferenceCall activity when availability is busy
Set default values for activity

---------

Signed-off-by: Martin Musale <martinmusale@microsoft.com>
Co-authored-by: Nickii Miaro <miaronkirote@gmail.com>
Co-authored-by: Gavin Barron <gavinbarron@microsoft.com>
  • Loading branch information
3 people committed Jul 14, 2023
1 parent 89bc700 commit bd17195
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/mgt-components/src/components/mgt-person/mgt-person.ts
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:
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:
presenceIcon = getSvg(SvgIcon.PresenceBusy);
break;
case 'OutOfOffice':
case 'OnACall':
presenceIcon = getSvg(SvgIcon.PresenceOofBusy);
break;
}
break;
case 'DoNotDisturb':
Expand Down

0 comments on commit bd17195

Please sign in to comment.