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:
Stephane Bisson 2017-04-20 12:21:02 -04:00
parent 26a77aa7b6
commit dd77a46c1b

View file

@ -120,7 +120,8 @@ class EchoMentionStatusPresentationModel extends EchoEventPresentationModel {
}
private function isTooManyMentionsFailure() {
return $this->getType() === 'mention-failure-too-many';
return $this->getFailureType() === 'too-many' ||
$this->getType() === 'mention-failure-too-many';
}
private function getMaxMentions() {