From b7c9a9b0e3ff5f949d927365469aa86869b18617 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Thu, 25 Jul 2024 13:15:31 -0600 Subject: [PATCH] Fix message counting logic --- src/command.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command.rs b/src/command.rs index e4320c5..11eb558 100644 --- a/src/command.rs +++ b/src/command.rs @@ -169,6 +169,7 @@ impl Server { fn walk(this: &Vec) -> usize { let mut total = 0; for channel in this { + total += channel.messages.len(); total += walk(&channel.children); }; total