Skip to content

Commit

Permalink
[IMPROVE] Automatically open call info contextual bar when voip room …
Browse files Browse the repository at this point in the history
…is opened (#26963)
  • Loading branch information
aleksandernsilva authored Oct 17, 2022
1 parent de1eed7 commit ded6352
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/client/sidebar/footer/voip/VoipFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const VoipFooter = ({
{title}
</Box>
{(callerState === 'IN_CALL' || callerState === 'ON_HOLD') && (
<ButtonGroup medium className='sidebar--custom-colors'>
<ButtonGroup medium className='sidebar--custom-colors' onClick={(e): void => e.stopPropagation()}>
<IconButton
small
disabled={paused}
Expand Down
3 changes: 3 additions & 0 deletions apps/meteor/client/views/room/providers/ToolboxProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const ToolboxProvider = ({ children, room }: { children: ReactNode; room: IRoom
case 'l':
open('room-info', username);
break;
case 'v':
open('voip-room-info', username);
break;
case 'd':
(room.uids?.length ?? 0) > 2 ? open('user-info-group', username) : open('user-info', username);
break;
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/lib/rooms/roomTypes/voip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function getVoipRoomType(coordinator: RoomCoordinator): IRoomTypeConfig {
return coordinator.openRoom('v', id);
},
link({ rid }): Record<string, string> {
return { id: rid || '' };
return { id: rid || '', tab: 'voip-room-info' };
},
},

Expand Down

0 comments on commit ded6352

Please sign in to comment.