only load latest 50 msgs for testing

This commit is contained in:
2025-11-21 14:38:27 -05:00
parent 775d8c4891
commit d93ced057a
2 changed files with 2 additions and 2 deletions

2
iris

Submodule iris updated: c428de8fd5...97b284e81e

View File

@@ -100,7 +100,7 @@ impl Client {
}
ServerMsg::LoadMsgs(msgs) => {
if let Some(msg_area) = &self.channel {
for msg in msgs {
for msg in msgs.into_iter().rev().take(30).rev() {
let msg = msg_widget(msg).add(&mut self.ui);
self.ui[msg_area].children.push(msg.any());
}