Always insert non-chathistory messages at the end

This commit is contained in:
Simon Ser 2021-11-09 10:49:18 +01:00
parent 94901f1662
commit df29650b98

View file

@ -143,7 +143,7 @@ function updateMembership(membership, letter, add, client) {
function insertMessage(list, msg) {
if (list.length == 0) {
return [msg];
} else if (list[list.length - 1].tags.time <= msg.tags.time) {
} else if (!irc.findBatchByType(msg, "chathistory") || list[list.length - 1].tags.time <= msg.tags.time) {
return list.concat(msg);
}