Skip to content

Commit c2d1cf6

Browse files
committed
refactor(ffi): When mapping ffi::MessageLikeEventContent, log any unsupported event types
At the moment, the logs just say 'Unsupported Event Type', which is not that helpful.
1 parent 7cda6d2 commit c2d1cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/matrix-sdk-ffi/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl TryFrom<AnySyncMessageLikeEvent> for MessageLikeEventContent {
244244
MessageLikeEventContent::RoomRedaction { redacted_event_id, reason }
245245
}
246246
AnySyncMessageLikeEvent::Sticker(_) => MessageLikeEventContent::Sticker,
247-
_ => bail!("Unsupported Event Type"),
247+
_ => bail!("Unsupported Event Type: {:?}", value.event_type()),
248248
};
249249
Ok(content)
250250
}

0 commit comments

Comments
 (0)