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

  • Thread starter Thread starter Itworx4me
  • Start date Start date
There is a bug in this version
I

Itworx4me

Guest
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...