Commit 6dbc4abd authored by Matthew Taylor's avatar Matthew Taylor

subtract admin notifications from social count

fallout from #1487
parent 3dd768f2
......@@ -224,6 +224,7 @@ var MessagesPresentation = injectIntl(React.createClass({
if (Object.keys(this.props.scratcherInvite).length > 0) {
adminMessageLength = adminMessageLength + 1;
}
var numNewSocialMessages = this.props.numNewMessages - adminMessageLength;
return (
<div className="messages">
......@@ -308,7 +309,7 @@ var MessagesPresentation = injectIntl(React.createClass({
<SocialMessagesList
loadStatus={this.props.requestStatus.messages}
messages={this.props.messages}
numNewMessages={this.props.numNewMessages}
numNewMessages={numNewSocialMessages}
loadMore={this.props.loadMore}
loadMoreMethod={this.props.loadMoreMethod}
/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment