Метод resolveUserDateLastActivity

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

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

Путь к исходному файлу строки 47–56
~/bitrix/modulesim/lib/V2/Pull/RecentPreviewPullTrait.php

Исходный код

PHP
protected

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

protected function resolveUserDateLastActivity(Chat $chat, int $userId): ?DateTime

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

Описание

Resolves the date for a per-user pull event (ChatPin, ChatMute, ...): user's existing recent item date if there is one, otherwise the chat's last message creation date as a fallback for the case when the user hasn't loaded the chat yet and the event itself adds it to recent.

Параметры

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