Merge "Fix counting of bundled mention notifications"

This commit is contained in:
jenkins-bot 2017-05-03 10:53:54 +00:00 committed by Gerrit Code Review
commit f19d9156a2

View file

@ -130,7 +130,8 @@ class EchoMentionStatusPresentationModel extends EchoEventPresentationModel {
}
private function getBundleSuccessCount() {
return $this->getBundleCount( false, [ $this, 'isMentionSuccessEvent' ] );
$events = array_merge( $this->getBundledEvents(), [ $this->event ] );
return count( array_filter( $events, [ $this, 'isMentionSuccessEvent' ] ) );
}
private function isMixedBundle() {