24 $groupId = (int)($this->event->getData()[
'GROUP_ID'] ??
null);
25 $taskId = (int)($this->event->getData()[
'ID'] ??
null);
26 $commentId = (int)($this->event->getData()[
'MESSAGE_ID'] ??
null);
28 if ($taskId <= 0 || $commentId <= 0 || $groupId < 0)
33 switch ($this->event->getType())
35 case EventDictionary::EVENT_SPACE_TASK_COMMENT_ADD:
36 $this->onCommentAdd($taskId, $commentId, $groupId);
38 case EventDictionary::EVENT_SPACE_TASK_COMMENT_DELETE:
39 $this->onCommentDelete($commentId);