@@ -46,9 +46,6 @@ import { useIsVideoRoom } from "../../../utils/video-rooms";
46
46
import { notificationLevelToIndicator } from "../../../utils/notifications" ;
47
47
import { CallGuestLinkButton } from "./RoomHeader/CallGuestLinkButton" ;
48
48
import { ButtonEvent } from "../elements/AccessibleButton" ;
49
- import { ReleaseAnnouncement } from "../../structures/ReleaseAnnouncement" ;
50
- import { useIsReleaseAnnouncementOpen } from "../../../hooks/useIsReleaseAnnouncementOpen" ;
51
- import { ReleaseAnnouncementStore } from "../../../stores/ReleaseAnnouncementStore" ;
52
49
import WithPresenceIndicator , { useDmMember } from "../avatars/WithPresenceIndicator" ;
53
50
import { IOOBData } from "../../../stores/ThreepidInviteStore" ;
54
51
import RoomContext from "../../../contexts/RoomContext" ;
@@ -225,8 +222,6 @@ export default function RoomHeader({
225
222
voiceCallButton = undefined ;
226
223
}
227
224
228
- const isReleaseAnnouncementOpen = useIsReleaseAnnouncementOpen ( "newRoomHeader" ) ;
229
-
230
225
const roomContext = useContext ( RoomContext ) ;
231
226
const isVideoRoom = useIsVideoRoom ( room ) ;
232
227
const showChatButton =
@@ -237,75 +232,62 @@ export default function RoomHeader({
237
232
return (
238
233
< >
239
234
< Flex as = "header" align = "center" gap = "var(--cpd-space-3x)" className = "mx_RoomHeader light-panel" >
240
- < ReleaseAnnouncement
241
- feature = "newRoomHeader"
242
- header = { _t ( "room|header|release_announcement_header" ) }
243
- description = { _t ( "room|header|release_announcement_description" ) }
244
- closeLabel = { _t ( "action|ok" ) }
245
- placement = "bottom"
235
+ < button
236
+ aria-label = { _t ( "right_panel|room_summary_card|title" ) }
237
+ tabIndex = { 0 }
238
+ onClick = { ( ) => RightPanelStore . instance . showOrHidePanel ( RightPanelPhases . RoomSummary ) }
239
+ className = "mx_RoomHeader_infoWrapper"
246
240
>
247
- < button
248
- aria-label = { _t ( "right_panel|room_summary_card|title" ) }
249
- tabIndex = { 0 }
250
- onClick = { ( ) => {
251
- if ( isReleaseAnnouncementOpen ) {
252
- ReleaseAnnouncementStore . instance . nextReleaseAnnouncement ( ) ;
253
- }
254
- RightPanelStore . instance . showOrHidePanel ( RightPanelPhases . RoomSummary ) ;
255
- } }
256
- className = "mx_RoomHeader_infoWrapper"
257
- >
258
- < WithPresenceIndicator room = { room } size = "8px" >
259
- < RoomAvatar room = { room } size = "40px" oobData = { oobData } />
260
- </ WithPresenceIndicator >
261
- < Box flex = "1" className = "mx_RoomHeader_info" >
262
- < BodyText
263
- as = "div"
264
- size = "lg"
265
- weight = "semibold"
266
- dir = "auto"
267
- role = "heading"
268
- aria-level = { 1 }
269
- className = "mx_RoomHeader_heading"
270
- >
271
- < span className = "mx_RoomHeader_truncated mx_lineClamp" > { roomName } </ span >
272
-
273
- { ! isDirectMessage && joinRule === JoinRule . Public && (
274
- < Tooltip label = { _t ( "common|public_room" ) } placement = "right" >
275
- < PublicIcon
276
- width = "16px"
277
- height = "16px"
278
- className = "mx_RoomHeader_icon text-secondary"
279
- aria-label = { _t ( "common|public_room" ) }
280
- />
281
- </ Tooltip >
282
- ) }
283
-
284
- { isDirectMessage && e2eStatus === E2EStatus . Verified && (
285
- < Tooltip label = { _t ( "common|verified" ) } placement = "right" >
286
- < VerifiedIcon
287
- width = "16px"
288
- height = "16px"
289
- className = "mx_RoomHeader_icon mx_Verified"
290
- aria-label = { _t ( "common|verified" ) }
291
- />
292
- </ Tooltip >
293
- ) }
294
-
295
- { isDirectMessage && e2eStatus === E2EStatus . Warning && (
296
- < Tooltip label = { _t ( "room|header_untrusted_label" ) } placement = "right" >
297
- < ErrorIcon
298
- width = "16px"
299
- height = "16px"
300
- className = "mx_RoomHeader_icon mx_Untrusted"
301
- aria-label = { _t ( "room|header_untrusted_label" ) }
302
- />
303
- </ Tooltip >
304
- ) }
305
- </ BodyText >
306
- </ Box >
307
- </ button >
308
- </ ReleaseAnnouncement >
241
+ < WithPresenceIndicator room = { room } size = "8px" >
242
+ < RoomAvatar room = { room } size = "40px" oobData = { oobData } />
243
+ </ WithPresenceIndicator >
244
+ < Box flex = "1" className = "mx_RoomHeader_info" >
245
+ < BodyText
246
+ as = "div"
247
+ size = "lg"
248
+ weight = "semibold"
249
+ dir = "auto"
250
+ role = "heading"
251
+ aria-level = { 1 }
252
+ className = "mx_RoomHeader_heading"
253
+ >
254
+ < span className = "mx_RoomHeader_truncated mx_lineClamp" > { roomName } </ span >
255
+
256
+ { ! isDirectMessage && joinRule === JoinRule . Public && (
257
+ < Tooltip label = { _t ( "common|public_room" ) } placement = "right" >
258
+ < PublicIcon
259
+ width = "16px"
260
+ height = "16px"
261
+ className = "mx_RoomHeader_icon text-secondary"
262
+ aria-label = { _t ( "common|public_room" ) }
263
+ />
264
+ </ Tooltip >
265
+ ) }
266
+
267
+ { isDirectMessage && e2eStatus === E2EStatus . Verified && (
268
+ < Tooltip label = { _t ( "common|verified" ) } placement = "right" >
269
+ < VerifiedIcon
270
+ width = "16px"
271
+ height = "16px"
272
+ className = "mx_RoomHeader_icon mx_Verified"
273
+ aria-label = { _t ( "common|verified" ) }
274
+ />
275
+ </ Tooltip >
276
+ ) }
277
+
278
+ { isDirectMessage && e2eStatus === E2EStatus . Warning && (
279
+ < Tooltip label = { _t ( "room|header_untrusted_label" ) } placement = "right" >
280
+ < ErrorIcon
281
+ width = "16px"
282
+ height = "16px"
283
+ className = "mx_RoomHeader_icon mx_Untrusted"
284
+ aria-label = { _t ( "room|header_untrusted_label" ) }
285
+ />
286
+ </ Tooltip >
287
+ ) }
288
+ </ BodyText >
289
+ </ Box >
290
+ </ button >
309
291
< Flex align = "center" gap = "var(--cpd-space-2x)" >
310
292
{ additionalButtons ?. map ( ( props ) => {
311
293
const label = props . label ( ) ;
0 commit comments