@@ -175,43 +175,55 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
175
175
</ Box >
176
176
< Flex as = "nav" align = "center" gap = "var(--cpd-space-2x)" >
177
177
{ ! useElementCallExclusively && (
178
+ < Tooltip label = { ! voiceCallDisabledReason ? _t ( "Voice call" ) : voiceCallDisabledReason ! } >
179
+ < IconButton
180
+ disabled = { ! ! voiceCallDisabledReason }
181
+ title = { ! voiceCallDisabledReason ? _t ( "Voice call" ) : voiceCallDisabledReason ! }
182
+ onClick = { ( evt ) => {
183
+ evt . stopPropagation ( ) ;
184
+ placeCall ( room , CallType . Voice , voiceCallType ) ;
185
+ } }
186
+ >
187
+ < VoiceCallIcon />
188
+ </ IconButton >
189
+ </ Tooltip >
190
+ ) }
191
+ < Tooltip label = { ! videoCallDisabledReason ? _t ( "Video call" ) : videoCallDisabledReason ! } >
178
192
< IconButton
179
- disabled = { ! ! voiceCallDisabledReason }
180
- title = { ! voiceCallDisabledReason ? _t ( "Voice call" ) : voiceCallDisabledReason ! }
181
- onClick = { ( ) => {
182
- placeCall ( room , CallType . Voice , voiceCallType ) ;
193
+ disabled = { ! ! videoCallDisabledReason }
194
+ title = { ! videoCallDisabledReason ? _t ( "Video call" ) : videoCallDisabledReason ! }
195
+ onClick = { ( evt ) => {
196
+ evt . stopPropagation ( ) ;
197
+ placeCall ( room , CallType . Video , videoCallType ) ;
183
198
} }
184
199
>
185
- < VoiceCallIcon />
200
+ < VideoCallIcon />
186
201
</ IconButton >
187
- ) }
188
- < IconButton
189
- disabled = { ! ! videoCallDisabledReason }
190
- title = { ! videoCallDisabledReason ? _t ( "Video call" ) : videoCallDisabledReason ! }
191
- onClick = { ( ) => {
192
- placeCall ( room , CallType . Video , videoCallType ) ;
193
- } }
194
- >
195
- < VideoCallIcon />
196
- </ IconButton >
197
- < IconButton
198
- indicator = { notificationColorToIndicator ( threadNotifications ) }
199
- onClick = { ( ) => {
200
- showOrHidePanel ( RightPanelPhases . ThreadPanel ) ;
201
- } }
202
- title = { _t ( "common|threads" ) }
203
- >
204
- < ThreadsIcon />
205
- </ IconButton >
206
- < IconButton
207
- indicator = { notificationColorToIndicator ( globalNotificationState . color ) }
208
- onClick = { ( ) => {
209
- showOrHidePanel ( RightPanelPhases . NotificationPanel ) ;
210
- } }
211
- title = { _t ( "Notifications" ) }
212
- >
213
- < NotificationsIcon />
214
- </ IconButton >
202
+ </ Tooltip >
203
+ < Tooltip label = { _t ( "common|threads" ) } >
204
+ < IconButton
205
+ indicator = { notificationColorToIndicator ( threadNotifications ) }
206
+ onClick = { ( evt ) => {
207
+ evt . stopPropagation ( ) ;
208
+ showOrHidePanel ( RightPanelPhases . ThreadPanel ) ;
209
+ } }
210
+ title = { _t ( "common|threads" ) }
211
+ >
212
+ < ThreadsIcon />
213
+ </ IconButton >
214
+ </ Tooltip >
215
+ < Tooltip label = { _t ( "Notifications" ) } >
216
+ < IconButton
217
+ indicator = { notificationColorToIndicator ( globalNotificationState . color ) }
218
+ onClick = { ( evt ) => {
219
+ evt . stopPropagation ( ) ;
220
+ showOrHidePanel ( RightPanelPhases . NotificationPanel ) ;
221
+ } }
222
+ title = { _t ( "Notifications" ) }
223
+ >
224
+ < NotificationsIcon />
225
+ </ IconButton >
226
+ </ Tooltip >
215
227
</ Flex >
216
228
{ ! isDirectMessage && (
217
229
< BodyText
@@ -229,6 +241,7 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
229
241
members = { members . slice ( 0 , 3 ) }
230
242
size = "20px"
231
243
overflow = { false }
244
+ viewUserOnClick = { false }
232
245
>
233
246
{ formatCount ( memberCount ) }
234
247
</ FacePile >
0 commit comments