Deprecate `WCF.Conversation.Message.QuoteHandler` in favor of `Ui/Message/Quote`
authorMatthias Schmidt <gravatronics@live.com>
Mon, 5 Jul 2021 11:52:54 +0000 (13:52 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 5 Jul 2021 11:52:54 +0000 (13:52 +0200)
files/js/WCF.Conversation.js

index 2ba0fe543e8e61ad2a31c251b2742c1d13aa482c..eaf4f1ceb5575016637896f4d90cd2c7ebeb7708 100644 (file)
@@ -1448,24 +1448,15 @@ WCF.Conversation.Message.InlineEditor = WCF.Message.InlineEditor.extend({
 });
 
 /**
- * Provides the quote manager for conversation messages.
- * 
- * @param      WCF.Message.Quote.Manager       quoteManager
- * @see                WCF.Message.Quote.Handler
+ * @deprecated 5.5, use `WoltLabSuite/Core/Conversation/Ui/Message/Quote` instead
  */
 WCF.Conversation.Message.QuoteHandler = WCF.Message.Quote.Handler.extend({
        /**
         * @see WCF.Message.QuoteManager.init()
         */
        init: function(quoteManager) {
-               this._super(
-                       quoteManager,
-                       'wcf\\data\\conversation\\message\\ConversationMessageAction',
-                       'com.woltlab.wcf.conversation.message',
-                       '.message',
-                       '.messageBody',
-                       '.messageBody > div > div.messageText',
-                       true
-               );
+               require(["WoltLabSuite/Core/Conversation/Ui/Message/Quote"], ({ UiConversationMessageQuote }) => {
+                       new UiConversationMessageQuote(quoteManager);
+               });
        }
 });