mirror of https://github.com/vector-im/riot-web
Fix room name not updating whilst summary card is open
parent
abd290938a
commit
f52dc9a3ea
|
@ -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 New Issue