mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
feat(space-upgrades): Skip empty state events in room upgrade
This commit is contained in:
1 parent
f063814d94
commit
57868a008c
1 file changed
+4
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user