refactor(ffi): When mapping ffi::StateEventContent, log any unsupported event types

The same was done for unsupported message-like event contents.
This commit is contained in:
Jorge Martín
2025-05-28 16:47:05 +02:00
committed by Jorge Martin Espinosa
parent 4626c4caaf
commit ed245a0cf0
+1 -1
View File
@@ -135,7 +135,7 @@ impl TryFrom<AnySyncStateEvent> for StateEventContent {
}
AnySyncStateEvent::SpaceChild(_) => StateEventContent::SpaceChild,
AnySyncStateEvent::SpaceParent(_) => StateEventContent::SpaceParent,
_ => bail!("Unsupported state event"),
_ => bail!("Unsupported state event: {:?}", value.event_type()),
};
Ok(event)
}