99 if (isset($this->recipientByChatId[$chatId]))
101 return $this->recipientByChatId[$chatId];
104 $relations = \Bitrix\Im\Chat::getRelation($chatId, [
'SELECT' => [
'ID',
'USER_ID'],
'WITHOUT_COUNTERS' =>
'Y']);
105 $this->recipientByChatId[$chatId] = array_keys($relations);
107 return $this->recipientByChatId[$chatId];