diff --git a/hive-c0re/src/matrix.rs b/hive-c0re/src/matrix.rs index 82a566f9..a2750e88 100644 --- a/hive-c0re/src/matrix.rs +++ b/hive-c0re/src/matrix.rs @@ -542,6 +542,9 @@ async fn admin_room_send_and_poll( for event in events { // Stop as soon as we reach our own command — everything // older (further into the list) predates our request. + // If our_event_id is empty (malformed PUT response), we skip + // this guard and inspect all 20 events — slight risk of a + // false match from an older response, but an acceptable fallback. if !our_event_id.is_empty() && event["event_id"].as_str() == Some(our_event_id.as_str()) {