Метод freshestUnread

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 22–35
~/bitrix/modulesim/lib/V2/Recent/PreviewSource/OwnMessageQuery.php

Исходный код

PHP
public

Сигнатура метода

public function freshestUnread(int $chatId, int $userId): ?int

Возвращает: ?int

Описание

Does NOT check access: it only filters by IS_MUTED='N' and assumes $chatId is already an access-validated candidate for $userId. Do not reuse standalone for chats that have not passed the full access gate.

Параметры

2
Имя Тип По умолчанию Флаги
$chatId int -
-
$userId int -
-