Skip to content

Conversation

@Half-Shot
Copy link
Member

@Half-Shot Half-Shot commented Oct 28, 2025

Fixes #31072

This goes with the nuclear option of hiding the header buttons for a room before it's been created, as currently none of them work. The alternative would be to go round the houses and add suitable mocks to LocalRoom of the actual room interface, but this seems overkill to my eyes.

Checklist

@Half-Shot Half-Shot marked this pull request as ready for review October 30, 2025 10:01
@Half-Shot Half-Shot requested a review from a team as a code owner October 30, 2025 10:01
@Half-Shot Half-Shot added the X-Needs-Product More input needed from the Product team label Oct 30, 2025
@Half-Shot Half-Shot changed the title Hide room header buttons if the room isn't ready Hide room header buttons if the room hasn't been created yet. Oct 30, 2025
@daniellekirkwood
Copy link
Contributor

Looks good.

Note: Users can still press the avatar to access room settings but that is a small use case and what you have here will help so much!

@Half-Shot
Copy link
Member Author

Note: Users can still press the avatar to access room settings but that is a small use case and what you have here will help so much!

Oh, we can do the last mile of changes there. I'll take a look.

@Half-Shot Half-Shot removed the X-Needs-Product More input needed from the Product team label Oct 30, 2025

import React, { type JSX, useCallback, useMemo, useState } from "react";
import { Body as BodyText, Button, IconButton, Menu, MenuItem, Tooltip } from "@vector-im/compound-web";
import { Text, Button, IconButton, Menu, MenuItem, Tooltip } from "@vector-im/compound-web";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N.B. BodyText is deprecated and a passthrough to Text, so I did some cleanup on the side here.

@Half-Shot Half-Shot added this pull request to the merge queue Nov 3, 2025
Merged via the queue into develop with commit 54f967e Nov 3, 2025
40 checks passed
@Half-Shot Half-Shot deleted the hs/hide-room-header-for-local-room branch November 3, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interaction with any room header element prior to sending first message is bugged

4 participants