public function __construct(User $user, MessagesFacade $messagesFacade)
 {
     parent::__construct($user, $messagesFacade);
     $this->query = new SentMessagesQuery();
     $this->query->withAuthor(['id', 'username', 'role'])->byAuthor($user)->onlyActive()->withoutSystemMessages();
 }
 public function __construct(User $user, MessagesFacade $messagesFacade)
 {
     parent::__construct($user, $messagesFacade);
     $this->query = new ReceivedMessagesQuery();
     $this->query->byRecipient($user)->onlyActive()->findReadMessages()->includingMessageAuthor(['id', 'username', 'role']);
 }