ios: optmize chat console performance (#2912)

This commit is contained in:
Evgeny Poberezkin 2023-08-14 07:36:39 +01:00 committed by GitHub
parent 4f9683f678
commit 1cc14346b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -582,7 +582,7 @@ final class ChatModel: ObservableObject {
func addTerminalItem(_ item: TerminalItem) {
if terminalItems.count >= 500 {
terminalItems.remove(at: 0)
terminalItems.removeFirst()
}
terminalItems.append(item)
}