1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-27 18:28:31 +00:00

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

This commit is contained in:
nexy7574 2025-07-19 15:41:36 +01:00 committed by Jade Ellis
parent f063814d94
commit 57868a008c
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

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