docs: comment on empty event_id fallback in admin-room poll

This commit is contained in:
atlas 2026-06-04 19:54:50 +02:00 committed by mara
commit 54f7c0facc

View file

@ -542,6 +542,9 @@ async fn admin_room_send_and_poll<T>(
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())
{