Fix incorrectly trimming channel
This commit is contained in:
parent
9249464445
commit
8e130f0259
@ -75,7 +75,7 @@ socket.on("msg", function(data) {
|
||||
}
|
||||
}
|
||||
|
||||
if (channel.messages.length > messageLimit) {
|
||||
if (messageLimit > 0 && channel.messages.length > messageLimit) {
|
||||
channel.messages.splice(0, channel.messages.length - messageLimit);
|
||||
channel.moreHistoryAvailable = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user