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:
parent
f063814d94
commit
57868a008c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue