mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Switched to pop_front
Former-commit-id: 2653d3bb0fc5e9dd9c50eeb7b012d3cd4e94b439
This commit is contained in:
parent
3534804697
commit
242a23658c
@ -96,7 +96,7 @@ impl<'a> Widget for Chat<'a> {
|
||||
// Empty old messages
|
||||
state.update(|s| {
|
||||
while s.messages.len() > MAX_MESSAGES {
|
||||
s.messages.pop_back();
|
||||
s.messages.pop_front();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user