You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Remove empty lines
This commit is contained in:
@@ -92,12 +92,9 @@ module.exports = React.createClass({
|
|||||||
renderSummary: function(joinEvents, leaveEvents) {
|
renderSummary: function(joinEvents, leaveEvents) {
|
||||||
let joiners = this.renderNameList(joinEvents);
|
let joiners = this.renderNameList(joinEvents);
|
||||||
let remainingJoiners = joinEvents.length - this.props.summaryLength;
|
let remainingJoiners = joinEvents.length - this.props.summaryLength;
|
||||||
|
|
||||||
let leavers = this.renderNameList(leaveEvents);
|
let leavers = this.renderNameList(leaveEvents);
|
||||||
let remainingLeavers = leaveEvents.length - this.props.summaryLength;
|
let remainingLeavers = leaveEvents.length - this.props.summaryLength;
|
||||||
|
|
||||||
let joinSummary = null;
|
let joinSummary = null;
|
||||||
|
|
||||||
if (joiners) {
|
if (joiners) {
|
||||||
joinSummary = (
|
joinSummary = (
|
||||||
<span>
|
<span>
|
||||||
@@ -105,9 +102,7 @@ module.exports = React.createClass({
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let leaveSummary = '';
|
let leaveSummary = '';
|
||||||
|
|
||||||
if (leavers) {
|
if (leavers) {
|
||||||
leaveSummary = (
|
leaveSummary = (
|
||||||
<span>
|
<span>
|
||||||
@@ -115,7 +110,6 @@ module.exports = React.createClass({
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
{joinSummary}{joinSummary && leaveSummary?'; ':''}
|
{joinSummary}{joinSummary && leaveSummary?'; ':''}
|
||||||
@@ -124,10 +118,7 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
renderAvatars: function(events) {
|
renderAvatars: function(events) {
|
||||||
|
|
||||||
let avatars = events.slice(0, this.props.avatarsMaxLength).map((e) => {
|
let avatars = events.slice(0, this.props.avatarsMaxLength).map((e) => {
|
||||||
let onClickAvatar = () => {
|
let onClickAvatar = () => {
|
||||||
dispatcher.dispatch({
|
dispatcher.dispatch({
|
||||||
@@ -201,7 +192,6 @@ module.exports = React.createClass({
|
|||||||
toggleButton = (
|
toggleButton = (
|
||||||
<a onClick={this.toggleSummary} href="javascript:;">{expanded?'collapse':'expand'}</a>
|
<a onClick={this.toggleSummary} href="javascript:;">{expanded?'collapse':'expand'}</a>
|
||||||
);
|
);
|
||||||
|
|
||||||
let noun = (joinAndLeft === 1 ? 'user' : 'others');
|
let noun = (joinAndLeft === 1 ? 'user' : 'others');
|
||||||
|
|
||||||
summaryContainer = (
|
summaryContainer = (
|
||||||
|
|||||||
Reference in New Issue
Block a user