3declare(strict_types=1);
5namespace Bitrix\Socialnetwork\Collab\Integration\IM;
10use Bitrix\Main\Result;
11use Bitrix\Socialnetwork\Collab\Registry\CollabRegistry;
13Loader::includeModule(
'im');
32 if (!Loader::includeModule(
'im'))
48 if (!Loader::includeModule(
'im'))
53 $collab = CollabRegistry::getInstance()->get($collabId);
59 return $collab->getDialogId();
66 $collab = CollabRegistry::getInstance()->get($collabId);
74 return static::deleteByChatId($collab->getChatId());
83 $result->addErrors($deleteResult->getErrors());
90 if (!Loader::includeModule(
'im'))
static getChatId($dialogId, $userId=null)
static disappearChat(Chat $chat, int $delay)
static updateMessagesAutoDelete(int $chatId, int $delay)
static getDialogIdByCollabId(int $collabId)
static deleteByChatId(int $chatId)
static getCollabIdByDialog(string $dialogId)
static deleteByCollabId(int $collabId)