mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Always insert non-chathistory messages at the end
This commit is contained in:
parent
94901f1662
commit
df29650b98
2
state.js
2
state.js
@ -143,7 +143,7 @@ function updateMembership(membership, letter, add, client) {
|
|||||||
function insertMessage(list, msg) {
|
function insertMessage(list, msg) {
|
||||||
if (list.length == 0) {
|
if (list.length == 0) {
|
||||||
return [msg];
|
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);
|
return list.concat(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user