mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 23:24:29 +03:00
Prettified Code!
This commit is contained in:
parent
a6ba61079f
commit
10b0247291
1 changed files with 3 additions and 1 deletions
|
@ -213,7 +213,9 @@ export default class Chat extends Component {
|
|||
});
|
||||
updatedMessageList.splice(insertAtIndex + 1, 0, convertedMessage);
|
||||
if (updatedMessageList.length > 300) {
|
||||
updatedMessageList = updatedMessageList.slice(Math.max(updatedMessageList.length - 300, 0));
|
||||
updatedMessageList = updatedMessageList.slice(
|
||||
Math.max(updatedMessageList.length - 300, 0)
|
||||
);
|
||||
}
|
||||
this.setState({
|
||||
messages: updatedMessageList,
|
||||
|
|
Loading…
Reference in a new issue