|
6 | 6 | use wcf\data\conversation\label\ConversationLabel; |
7 | 7 | use wcf\data\conversation\message\ConversationMessageAction; |
8 | 8 | use wcf\data\conversation\message\ConversationMessageList; |
9 | | -use wcf\data\conversation\message\SimplifiedViewableConversationMessageList; |
10 | 9 | use wcf\data\IClipboardAction; |
11 | | -use wcf\data\IPopoverAction; |
12 | 10 | use wcf\data\IVisitableObjectAction; |
13 | 11 | use wcf\data\user\group\UserGroup; |
14 | 12 | use wcf\page\ConversationPage; |
|
41 | 39 | */ |
42 | 40 | class ConversationAction extends AbstractDatabaseObjectAction implements |
43 | 41 | IClipboardAction, |
44 | | - IPopoverAction, |
45 | 42 | IVisitableObjectAction |
46 | 43 | { |
47 | 44 | /** |
@@ -469,56 +466,6 @@ public function getLabelManagement() |
469 | 466 | ]; |
470 | 467 | } |
471 | 468 |
|
472 | | - /** |
473 | | - * @inheritDoc |
474 | | - */ |
475 | | - public function validateGetPopover() |
476 | | - { |
477 | | - $this->conversation = $this->getSingleObject(); |
478 | | - if (!Conversation::isParticipant([$this->conversation->conversationID])) { |
479 | | - throw new PermissionDeniedException(); |
480 | | - } |
481 | | - } |
482 | | - |
483 | | - /** |
484 | | - * @inheritDoc |
485 | | - */ |
486 | | - public function getPopover() |
487 | | - { |
488 | | - $messageList = new SimplifiedViewableConversationMessageList(); |
489 | | - $messageList->getConditionBuilder() |
490 | | - ->add("conversation_message.messageID = ?", [$this->conversation->firstMessageID]); |
491 | | - $messageList->readObjects(); |
492 | | - |
493 | | - return [ |
494 | | - 'template' => WCF::getTPL()->fetch('conversationMessagePreview', 'wcf', [ |
495 | | - 'message' => $messageList->getSingleObject(), |
496 | | - ]), |
497 | | - ]; |
498 | | - } |
499 | | - |
500 | | - /** |
501 | | - * Validates the get message preview action. |
502 | | - * |
503 | | - * @throws PermissionDeniedException |
504 | | - * @deprecated 5.3 Use `validateGetPopover()` instead. |
505 | | - */ |
506 | | - public function validateGetMessagePreview() |
507 | | - { |
508 | | - $this->validateGetPopover(); |
509 | | - } |
510 | | - |
511 | | - /** |
512 | | - * Returns a preview of a message in a specific conversation. |
513 | | - * |
514 | | - * @return string[] |
515 | | - * @deprecated 5.3 Use `getPopover()` instead. |
516 | | - */ |
517 | | - public function getMessagePreview() |
518 | | - { |
519 | | - return $this->getPopover(); |
520 | | - } |
521 | | - |
522 | 469 | /** |
523 | 470 | * Validates parameters to close conversations. |
524 | 471 | * |
|
0 commit comments