Skip to content

Commit 46d05d8

Browse files
committed
fix(base): Remove a panic in a log.
We must not panic if the event has no event ID.
1 parent 610f82a commit 46d05d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/matrix-sdk-base/src/response_processors/room/msc4186

crates/matrix-sdk-base/src/response_processors/room/msc4186/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ pub(crate) async fn cache_latest_events(
548548
}
549549
} else {
550550
warn!(
551-
"Failed to deserialize event as AnySyncTimelineEvent. ID={}",
552-
event.event_id().expect("Event has no ID!")
551+
event_id = ?event.event_id(),
552+
"Failed to deserialize event as `AnySyncTimelineEvent`",
553553
);
554554
}
555555
}

0 commit comments

Comments
 (0)