Метод getLastMessageId
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
32–35
~/bitrix/modulesim/lib/V2/Chat/ExternalChat/Event/AfterReadAllMessagesEvent.php
Исходный код
Сигнатура метода
public function getLastMessageId(): int
Возвращает:
int
Описание
Snapshot boundary: the chat's last message id at the read-all moment. Consumers must mark only links whose IM_MESSAGE_ID <= this id, so a post whose system message arrived AFTER the read-all (cross-post in the gap before the deferred handler runs) is not falsely marked seen. 0 - no boundary (legacy).