...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/notification.php
- Класс: Bitrix\Crm\Activity\Provider\Notification
- Вызов: Notification::getMessageStatusCode
static function getMessageStatusCode(string $statusId, Event $event = null): ?int { $isDelivered = $statusId === MessageStatus::DELIVERED; // WORKAROUND: to correct update Bitrix24 notification $isSmsNotificationDelivered = isset($event) && !self::isWhatsappMessage($event) && $statusId === MessageStatus::IN_DELIVERY; if ($isDelivered || $isSmsNotificationDelivered) { return static::MESSAGE_SUCCESS; } if ($statusId === MessageStatus::READ) { return static::MESSAGE_READ; } if (in_array($statusId, [MessageStatus::UNDELIVERED, MessageStatus::ERROR, MessageStatus::FAILED], true)) { return static::MESSAGE_FAILURE; } return null; }