You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
@@ -1060,12 +1060,12 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||||||
|
|
||||||
const memberCount = roomToLeave.currentState.getJoinedMemberCount();
|
const memberCount = roomToLeave.currentState.getJoinedMemberCount();
|
||||||
if (memberCount === 1) {
|
if (memberCount === 1) {
|
||||||
warnings.push(
|
warnings.push((
|
||||||
<span className="warning" key="only_member_warning">
|
<span className="warning" key="only_member_warning">
|
||||||
{' '/* Whitespace, otherwise the sentences get smashed together */ }
|
{' '/* Whitespace, otherwise the sentences get smashed together */ }
|
||||||
{ _t("You are the only member of this room. This room will become unjoinable if you leave.") }
|
{ _t("You are the only member of this room. This room will become unjoinable if you leave.") }
|
||||||
</span>
|
</span>
|
||||||
);
|
));
|
||||||
|
|
||||||
return warnings;
|
return warnings;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user