Change wording for old room link
This commit is contained in:
parent
64423e1f7d
commit
ec01f6ffb1
2 changed files with 8 additions and 15 deletions
|
@ -119,21 +119,13 @@ export default class AdvancedRoomSettingsTab extends React.Component {
|
|||
|
||||
let oldRoomLink;
|
||||
if (this.state.hasPreviousRoom) {
|
||||
let name = _t("this room");
|
||||
const room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||
if (room && room.name) name = room.name;
|
||||
oldRoomLink = (
|
||||
<div>
|
||||
{_t(
|
||||
"This is the upgraded version of another room. <a>Click here to visit the old room</a>.",
|
||||
{}, {
|
||||
'a': (sub) => {
|
||||
return (
|
||||
<AccessibleButton element='a' onClick={this._onOldRoomClicked}>
|
||||
{sub}
|
||||
</AccessibleButton>
|
||||
);
|
||||
},
|
||||
},
|
||||
)}
|
||||
</div>
|
||||
<AccessibleButton element='a' onClick={this._onOldRoomClicked}>
|
||||
{_t("View older messages in %(roomName)s.", {roomName: name})}
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue