12 if (!$this->
isPullEnable() || !$this->sendingConfig->addRecent())
17 $chat = $this->message->getChat();
19 if ($chat->getRelations()->hasUser($this->message->getAuthorId(), $chat->getId()))
21 \CPushManager::DeleteFromQueueBySubTag($this->message->getAuthorId(),
'IM_MESS');
26 'command' =>
'messageChat',
27 'params' => $this->pushFormatter->format(),
31 $watchPullMessage = $pullMessage;
32 $watchPullMessage[
'params'][
'message'][
'params'][
'NOTIFY'] =
'N';
33 $watchPullMessage[
'extra'][
'is_shared_event'] =
true;
34 $watchPullMessage[
'params'][
'recentConfig'][
'sections'] = $chat->getRecentSectionsForGuest();
35 if ($chat->needToSendPublicPull())
37 \CPullWatch::AddToStack(
'IM_PUBLIC_'. $chat->getChatId(), $watchPullMessage);
39 if ($chat->getType() === Chat::IM_TYPE_OPEN_CHANNEL)
43 if ($chat->getType() === \
Bitrix\
Im\
V2\Chat::IM_TYPE_COMMENT)
45 \CPullWatch::AddToStack(
'IM_PUBLIC_COMMENT_' . $chat->getParentChatId(), $watchPullMessage);
52 $this->mobilePush->sendForGroupMessage($group);