mirror of https://github.com/vector-im/riot-web
				
				
				
			Show the room name in the room header during calls (#9942)
							parent
							
								
									da30b3069c
								
							
						
					
					
						commit
						9d0230b6ab
					
				|  | @ -108,7 +108,7 @@ limitations under the License. | |||
|     display: flex; | ||||
|     user-select: none; | ||||
| 
 | ||||
|     &:not(.mx_RoomHeader_name--textonly):hover { | ||||
|     &:hover { | ||||
|         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; | ||||
| 
 | ||||
|         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) { | ||||
|             return ( | ||||
|                 <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> | ||||
|                         {icon} | ||||
|                         <div className="mx_RoomHeader_name mx_RoomHeader_name--textonly mx_RoomHeader_name--small"> | ||||
|                             {_t("Video call")} | ||||
|                         </div> | ||||
|                         {name} | ||||
|                         {this.props.activeCall instanceof ElementCall && ( | ||||
|                             <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 viewLabs = (): void => | ||||
|  |  | |||
|  | @ -1997,9 +1997,9 @@ | |||
|     "Close call": "Close call", | ||||
|     "View chat timeline": "View chat timeline", | ||||
|     "Room options": "Room options", | ||||
|     "Join Room": "Join Room", | ||||
|     "(~%(count)s results)|other": "(~%(count)s results)", | ||||
|     "(~%(count)s results)|one": "(~%(count)s result)", | ||||
|     "Join Room": "Join Room", | ||||
|     "Video rooms are a beta feature": "Video rooms are a beta feature", | ||||
|     "Video room": "Video room", | ||||
|     "Public space": "Public space", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Robin
						Robin