Fix spaces rooms list load error.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jacob Taylor 2025-04-15 13:06:54 +00:00 committed by Jason Volk
parent de7842b470
commit eb2949d6d7

View file

@ -121,7 +121,9 @@ where
.map(|(key, val)| (key, val.collect()))
.collect();
if !populate {
if populate {
rooms.push(summary_to_chunk(summary.clone()));
} else {
children = children
.iter()
.rev()
@ -144,10 +146,8 @@ where
.collect();
}
if populate {
rooms.push(summary_to_chunk(summary.clone()));
} else if queue.is_empty() && children.is_empty() {
return Err!(Request(InvalidParam("Room IDs in token were not found.")));
if queue.is_empty() && children.is_empty() {
break;
}
parents.insert(current_room.clone());