Fix message counting logic

This commit is contained in:
Oliver Atkinson 2024-07-25 13:15:31 -06:00
parent 79638ed324
commit b7c9a9b0e3

View File

@ -169,6 +169,7 @@ impl Server {
fn walk(this: &Vec<Channel>) -> usize {
let mut total = 0;
for channel in this {
total += channel.messages.len();
total += walk(&channel.children);
};
total