mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-13 17:57:21 +00:00
MentionStatus: prefer failure-type
In MentionStatusPresentationModel, prefer extra['failure-type'] to event-type to determine why the mention was not sent. Bug: T144614 Change-Id: Id3b55e15a0c1a8f3fee19cbe07983c6e373b309e
This commit is contained in:
parent
26a77aa7b6
commit
dd77a46c1b
|
@ -120,7 +120,8 @@ class EchoMentionStatusPresentationModel extends EchoEventPresentationModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function isTooManyMentionsFailure() {
|
private function isTooManyMentionsFailure() {
|
||||||
return $this->getType() === 'mention-failure-too-many';
|
return $this->getFailureType() === 'too-many' ||
|
||||||
|
$this->getType() === 'mention-failure-too-many';
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getMaxMentions() {
|
private function getMaxMentions() {
|
||||||
|
|
Loading…
Reference in a new issue