From 54f7c0facc207c4db1a9d55f2cbbfe9b35d5bf9f Mon Sep 17 00:00:00 2001 From: atlas Date: Thu, 4 Jun 2026 19:54:50 +0200 Subject: [PATCH] docs: comment on empty event_id fallback in admin-room poll --- hive-c0re/src/matrix.rs | 3 +++ 1 file changed, 3 insertions(+) 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()) {