Show the room name in the room header during calls (#9942)
This commit is contained in:
parent
da30b3069c
commit
9d0230b6ab
3 changed files with 10 additions and 12 deletions
|
@ -108,7 +108,7 @@ limitations under the License.
|
||||||
display: flex;
|
display: flex;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
&:not(.mx_RoomHeader_name--textonly):hover {
|
&:hover {
|
||||||
background-color: $quinary-content;
|
background-color: $quinary-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -743,6 +743,13 @@ export default class RoomHeader extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
const buttons = this.props.showButtons ? this.renderButtons(isVideoRoom) : null;
|
const buttons = this.props.showButtons ? this.renderButtons(isVideoRoom) : null;
|
||||||
|
|
||||||
|
let oobName = _t("Join Room");
|
||||||
|
if (this.props.oobData && this.props.oobData.name) {
|
||||||
|
oobName = this.props.oobData.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
const name = this.renderName(oobName);
|
||||||
|
|
||||||
if (this.props.viewingCall && !isVideoRoom) {
|
if (this.props.viewingCall && !isVideoRoom) {
|
||||||
return (
|
return (
|
||||||
<header className="mx_RoomHeader light-panel">
|
<header className="mx_RoomHeader light-panel">
|
||||||
|
@ -752,9 +759,7 @@ export default class RoomHeader extends React.Component<IProps, IState> {
|
||||||
>
|
>
|
||||||
<div className="mx_RoomHeader_avatar">{roomAvatar}</div>
|
<div className="mx_RoomHeader_avatar">{roomAvatar}</div>
|
||||||
{icon}
|
{icon}
|
||||||
<div className="mx_RoomHeader_name mx_RoomHeader_name--textonly mx_RoomHeader_name--small">
|
{name}
|
||||||
{_t("Video call")}
|
|
||||||
</div>
|
|
||||||
{this.props.activeCall instanceof ElementCall && (
|
{this.props.activeCall instanceof ElementCall && (
|
||||||
<GroupCallDuration groupCall={this.props.activeCall.groupCall} />
|
<GroupCallDuration groupCall={this.props.activeCall.groupCall} />
|
||||||
)}
|
)}
|
||||||
|
@ -779,13 +784,6 @@ export default class RoomHeader extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let oobName = _t("Join Room");
|
|
||||||
if (this.props.oobData && this.props.oobData.name) {
|
|
||||||
oobName = this.props.oobData.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
const name = this.renderName(oobName);
|
|
||||||
|
|
||||||
const topicElement = <RoomTopic room={this.props.room} className="mx_RoomHeader_topic" />;
|
const topicElement = <RoomTopic room={this.props.room} className="mx_RoomHeader_topic" />;
|
||||||
|
|
||||||
const viewLabs = (): void =>
|
const viewLabs = (): void =>
|
||||||
|
|
|
@ -1997,9 +1997,9 @@
|
||||||
"Close call": "Close call",
|
"Close call": "Close call",
|
||||||
"View chat timeline": "View chat timeline",
|
"View chat timeline": "View chat timeline",
|
||||||
"Room options": "Room options",
|
"Room options": "Room options",
|
||||||
|
"Join Room": "Join Room",
|
||||||
"(~%(count)s results)|other": "(~%(count)s results)",
|
"(~%(count)s results)|other": "(~%(count)s results)",
|
||||||
"(~%(count)s results)|one": "(~%(count)s result)",
|
"(~%(count)s results)|one": "(~%(count)s result)",
|
||||||
"Join Room": "Join Room",
|
|
||||||
"Video rooms are a beta feature": "Video rooms are a beta feature",
|
"Video rooms are a beta feature": "Video rooms are a beta feature",
|
||||||
"Video room": "Video room",
|
"Video room": "Video room",
|
||||||
"Public space": "Public space",
|
"Public space": "Public space",
|
||||||
|
|
Loading…
Reference in a new issue