mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Fix room name not updating whilst summary card is open
This commit is contained in:
parent
abd290938a
commit
f52dc9a3ea
1 changed files with 8 additions and 1 deletions
|
@ -45,6 +45,7 @@ import {ChevronFace, ContextMenuTooltipButton, useContextMenu} from "../../struc
|
||||||
import WidgetContextMenu from "../context_menus/WidgetContextMenu";
|
import WidgetContextMenu from "../context_menus/WidgetContextMenu";
|
||||||
import {useRoomMemberCount} from "../../../hooks/useRoomMembers";
|
import {useRoomMemberCount} from "../../../hooks/useRoomMembers";
|
||||||
import { Container, MAX_PINNED, WidgetLayoutStore } from "../../../stores/widgets/WidgetLayoutStore";
|
import { Container, MAX_PINNED, WidgetLayoutStore } from "../../../stores/widgets/WidgetLayoutStore";
|
||||||
|
import RoomName from "../elements/RoomName";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
room: Room;
|
room: Room;
|
||||||
|
@ -249,7 +250,13 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, onClose }) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 title={room.name}>{ room.name }</h2>
|
<RoomName room={room}>
|
||||||
|
{ name => (
|
||||||
|
<h2 title={name}>
|
||||||
|
{ name }
|
||||||
|
</h2>
|
||||||
|
)}
|
||||||
|
</RoomName>
|
||||||
<div className="mx_RoomSummaryCard_alias" title={alias}>
|
<div className="mx_RoomSummaryCard_alias" title={alias}>
|
||||||
{ alias }
|
{ alias }
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue