-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Hide room header buttons if the room hasn't been created yet. #31092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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! |
Oh, we can do the last mile of changes there. I'll take a look. |
|
|
||
| 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"; |
There was a problem hiding this comment.
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.
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
LocalRoomof the actual room interface, but this seems overkill to my eyes.Checklist
public/exportedsymbols have accurate TSDoc documentation.