mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
parent
3dd768f2f6
commit
6dbc4abdc5
1 changed files with 2 additions and 1 deletions
|
@ -224,6 +224,7 @@ var MessagesPresentation = injectIntl(React.createClass({
|
||||||
if (Object.keys(this.props.scratcherInvite).length > 0) {
|
if (Object.keys(this.props.scratcherInvite).length > 0) {
|
||||||
adminMessageLength = adminMessageLength + 1;
|
adminMessageLength = adminMessageLength + 1;
|
||||||
}
|
}
|
||||||
|
var numNewSocialMessages = this.props.numNewMessages - adminMessageLength;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="messages">
|
<div className="messages">
|
||||||
|
@ -308,7 +309,7 @@ var MessagesPresentation = injectIntl(React.createClass({
|
||||||
<SocialMessagesList
|
<SocialMessagesList
|
||||||
loadStatus={this.props.requestStatus.messages}
|
loadStatus={this.props.requestStatus.messages}
|
||||||
messages={this.props.messages}
|
messages={this.props.messages}
|
||||||
numNewMessages={this.props.numNewMessages}
|
numNewMessages={numNewSocialMessages}
|
||||||
loadMore={this.props.loadMore}
|
loadMore={this.props.loadMore}
|
||||||
loadMoreMethod={this.props.loadMoreMethod}
|
loadMoreMethod={this.props.loadMoreMethod}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue