3namespace Bitrix\Im\V2\Message;
5use Bitrix\Im\V2\Chat\Comment\CommentPopupItem;
6use Bitrix\Im\V2\Message\Reaction\ReactionPopupItem;
7use Bitrix\Im\V2\MessageCollection;
8use Bitrix\Im\V2\Rest\PopupData;
9use Bitrix\Im\V2\Rest\PopupDataAggregatable;
10use Bitrix\Im\V2\Rest\PopupDataItem;
17 private array $messageIds;
19 private bool $shortInfo;
23 $this->messageIds = array_unique($messageIds);
24 $this->shortInfo = $shortInfo;
29 $instance =
new self($messages->getIds(), $shortInfo);
37 if ($item instanceof
self)
39 $this->messageIds = array_unique(array_merge($this->messageIds, $item->messageIds));
52 $option[
'MESSAGE_SHORT_INFO'] = $this->shortInfo;
54 return $this->getMessages()->toRestFormat(
$option);
61 $excludedList[] = ReactionPopupItem::class;
62 $excludedList[] = CommentPopupItem::class;
65 return $this->getMessages()->getPopupData($excludedList);
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)