mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Always insert non-chathistory messages at the end
This commit is contained in:
parent
94901f1662
commit
df29650b98
1 changed files with 1 additions and 1 deletions
2
state.js
2
state.js
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue