3namespace Bitrix\Im\V2\Sync;
5use Bitrix\Im\V2\MessageCollection;
6use Bitrix\Im\V2\Rest\RestAdapter;
7use Bitrix\Im\V2\Sync\Entity\Chats;
8use Bitrix\Im\V2\Sync\Entity\DialogIds;
9use Bitrix\Im\V2\Sync\Entity\Messages;
10use Bitrix\Im\V2\Sync\Entity\PinMessages;
11use Bitrix\Im\V2\Chat\Comment\CommentPopupItem;
12use Bitrix\Im\V2\TariffLimit\TariffLimitPopupItem;
19 protected Chats $chats,
41 $pinCollection = $this->pinMessages->getPinCollection();
42 $chatItems = $this->chats->getChatItems();
44 $restData = (
new RestAdapter($messageCollection, $pinCollection, $chatItems))->toRestFormat($this->
getOption());
45 $this->rest = array_merge($this->rest, $restData);
51 'POPUP_DATA_EXCLUDE' => [CommentPopupItem::class, TariffLimitPopupItem::class]
57 $messageIds = $this->messages->getMessageIds() + $this->chats->getMessageIds();
64 return $this->dialogIds->load($this->rest)->toRestFormat();
__construct(protected Chats $chats, protected Messages $messages, protected PinMessages $pinMessages, protected DialogIds $dialogIds,)
static getRestEntityName()
static getRestEntityName()
static getRestEntityName()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)