feat(space-upgrades): Skip empty state events in room upgrade

This commit is contained in:
nexy7574 2025-07-19 15:41:36 +01:00
commit e586dcd8f2
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -227,6 +227,10 @@ pub(crate) async fn upgrade_room_route(
| Ok(v) => v.content().to_owned(), | Ok(v) => v.content().to_owned(),
| Err(_) => continue, // Skipping missing events. | Err(_) => continue, // Skipping missing events.
}; };
if event_content.get() == "{}" {
// If the event content is empty, we skip it
continue;
}
services services
.rooms .rooms