docs: comment on empty event_id fallback in admin-room poll
This commit is contained in:
parent
e20a311786
commit
54f7c0facc
1 changed files with 3 additions and 0 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue