@@ -310,78 +310,78 @@ export default function RoomHeader({
310
310
</ BodyText >
311
311
</ Box >
312
312
</ button >
313
- < Flex align = "center" gap = "var(--cpd-space-2x)" >
314
- { additionalButtons ?. map ( ( props ) => {
315
- const label = props . label ( ) ;
316
313
317
- return (
318
- < Tooltip label = { label } key = { props . id } >
319
- < IconButton
320
- aria-label = { label }
321
- onClick = { ( event ) => {
322
- event . stopPropagation ( ) ;
323
- props . onClick ( ) ;
324
- } }
325
- >
326
- { typeof props . icon === "function" ? props . icon ( ) : props . icon }
327
- </ IconButton >
328
- </ Tooltip >
329
- ) ;
330
- } ) }
314
+ { additionalButtons ?. map ( ( props ) => {
315
+ const label = props . label ( ) ;
331
316
332
- { isViewingCall && < CallGuestLinkButton room = { room } /> }
333
-
334
- { hasActiveCallSession && ! isConnectedToCall && ! isViewingCall ? (
335
- joinCallButton
336
- ) : (
337
- < >
338
- { ! isVideoRoom && videoCallButton }
339
- { ! useElementCallExclusively && ! isVideoRoom && voiceCallButton }
340
- </ >
341
- ) }
317
+ return (
318
+ < Tooltip label = { label } key = { props . id } >
319
+ < IconButton
320
+ aria-label = { label }
321
+ onClick = { ( event ) => {
322
+ event . stopPropagation ( ) ;
323
+ props . onClick ( ) ;
324
+ } }
325
+ >
326
+ { typeof props . icon === "function" ? props . icon ( ) : props . icon }
327
+ </ IconButton >
328
+ </ Tooltip >
329
+ ) ;
330
+ } ) }
331
+
332
+ { isViewingCall && < CallGuestLinkButton room = { room } /> }
333
+
334
+ { hasActiveCallSession && ! isConnectedToCall && ! isViewingCall ? (
335
+ joinCallButton
336
+ ) : (
337
+ < >
338
+ { ! isVideoRoom && videoCallButton }
339
+ { ! useElementCallExclusively && ! isVideoRoom && voiceCallButton }
340
+ </ >
341
+ ) }
342
342
343
- < Tooltip label = { _t ( "right_panel|room_summary_card|title" ) } >
343
+ { showChatButton && < VideoRoomChatButton room = { room } /> }
344
+
345
+ < Tooltip label = { _t ( "common|threads" ) } >
346
+ < IconButton
347
+ indicator = { notificationLevelToIndicator ( threadNotifications ) }
348
+ onClick = { ( evt ) => {
349
+ evt . stopPropagation ( ) ;
350
+ RightPanelStore . instance . showOrHidePhase ( RightPanelPhases . ThreadPanel ) ;
351
+ PosthogTrackers . trackInteraction ( "WebRoomHeaderButtonsThreadsButton" , evt ) ;
352
+ } }
353
+ aria-label = { _t ( "common|threads" ) }
354
+ >
355
+ < ThreadsIcon />
356
+ </ IconButton >
357
+ </ Tooltip >
358
+ { notificationsEnabled && (
359
+ < Tooltip label = { _t ( "notifications|enable_prompt_toast_title" ) } >
344
360
< IconButton
361
+ indicator = { notificationLevelToIndicator ( globalNotificationState . level ) }
345
362
onClick = { ( evt ) => {
346
363
evt . stopPropagation ( ) ;
347
- RightPanelStore . instance . showOrHidePhase ( RightPanelPhases . RoomSummary ) ;
364
+ RightPanelStore . instance . showOrHidePhase ( RightPanelPhases . NotificationPanel ) ;
348
365
} }
349
- aria-label = { _t ( "right_panel|room_summary_card|title " ) }
366
+ aria-label = { _t ( "notifications|enable_prompt_toast_title " ) }
350
367
>
351
- < RoomInfoIcon />
368
+ < NotificationsIcon />
352
369
</ IconButton >
353
370
</ Tooltip >
371
+ ) }
354
372
355
- { showChatButton && < VideoRoomChatButton room = { room } /> }
373
+ < Tooltip label = { _t ( "right_panel|room_summary_card|title" ) } >
374
+ < IconButton
375
+ onClick = { ( evt ) => {
376
+ evt . stopPropagation ( ) ;
377
+ RightPanelStore . instance . showOrHidePhase ( RightPanelPhases . RoomSummary ) ;
378
+ } }
379
+ aria-label = { _t ( "right_panel|room_summary_card|title" ) }
380
+ >
381
+ < RoomInfoIcon />
382
+ </ IconButton >
383
+ </ Tooltip >
356
384
357
- < Tooltip label = { _t ( "common|threads" ) } >
358
- < IconButton
359
- indicator = { notificationLevelToIndicator ( threadNotifications ) }
360
- onClick = { ( evt ) => {
361
- evt . stopPropagation ( ) ;
362
- RightPanelStore . instance . showOrHidePhase ( RightPanelPhases . ThreadPanel ) ;
363
- PosthogTrackers . trackInteraction ( "WebRoomHeaderButtonsThreadsButton" , evt ) ;
364
- } }
365
- aria-label = { _t ( "common|threads" ) }
366
- >
367
- < ThreadsIcon />
368
- </ IconButton >
369
- </ Tooltip >
370
- { notificationsEnabled && (
371
- < Tooltip label = { _t ( "notifications|enable_prompt_toast_title" ) } >
372
- < IconButton
373
- indicator = { notificationLevelToIndicator ( globalNotificationState . level ) }
374
- onClick = { ( evt ) => {
375
- evt . stopPropagation ( ) ;
376
- RightPanelStore . instance . showOrHidePhase ( RightPanelPhases . NotificationPanel ) ;
377
- } }
378
- aria-label = { _t ( "notifications|enable_prompt_toast_title" ) }
379
- >
380
- < NotificationsIcon />
381
- </ IconButton >
382
- </ Tooltip >
383
- ) }
384
- </ Flex >
385
385
{ ! isDirectMessage && (
386
386
< BodyText as = "div" size = "sm" weight = "medium" >
387
387
< FacePile
0 commit comments