. /** * GNUsocial implementation of Direct Messages * * @package GNUsocial * @author Mikael Nordfeldth * @author Bruno Casteleiro * @copyright 2019 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ defined('GNUSOCIAL') || die(); /** * Inbox MessageListItem widget * * @category Plugin * @package GNUsocial * @author Evan Prodromou * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ class InboxMessageListItem extends MessageListItem { /** * Returns the profile we want to show with the message * * @return Profile The profile that matches the message */ function getMessageProfile(): ?Profile { return $this->message->getProfile(); } }