mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Merge "Fix counting of bundled mention notifications"
This commit is contained in:
commit
f19d9156a2
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue