Hello. I try to use tailMessageRule but it works strange, “message-tail” class is added to the element before the sought-for one. And after all elements have been processed, this function is called one more time with undefined parameters. Here is my code
var chat = app.messages.create({
el: "#chat .messages",
tailMessageRule: function (message, previousMessage, nextMessage) {
if (!message || message.isTitle) return false;
if (!nextMessage || nextMessage.type !== message.type || nextMessage.name !== message.name) return true;
return false;
}
});