public static function removeMessage($message) { $result = CgdUser::removeMessage($message); if ($result) { $message->userFrom = CgdUser::getUser($message->userFrom); $message->userTo = CgdUser::getUser($message->userTo); AplUser::sendMessageRemoved_AwsSns($message, $message->userFrom, $message->userTo); /*AplUser::sendMessageRemoved( $message, $message->userFrom, $message->userTo );*/ } return $result; }