📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
I

RSS QuickReply scroll-to-new-post fails - onInsert callback receives wrong parameter

  • Thread starter Thread starter Itworx4me
  • Start date Start date
I

Itworx4me

Guest
Guest or Bot
In js/xf/message.js, the XF.Message.insertMessages function passes the wrong parameter to the onInsert callback, causing the scroll-to-new-post feature in QuickReply to fail silently.

Location: js/xf/message.js - XF.Message.insertMessages function
The Problem: The callback is invoked with html instead of messages:
Code:

Code:
if (onInsert)
{
    onInsert(html)  // Wrong - passes raw html parameter
}
But XF.QuickReply.insertMessages expects an array:

Code:

Code:
messages =>
{
    const message =...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top