Skip to content

Commit

Permalink
Ensure all who during receiving window are discarded
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Apr 30, 2024
1 parent 6eb019b commit c40ae38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions data/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ impl Client {
if matches!(channel.last_who, Some(WhoStatus::Requested(_, None)) | None) {
channel.last_who = Some(WhoStatus::Receiving(None));
log::debug!("[{}] {target} - WHO receiving...", self.server);
}

if matches!(channel.last_who, Some(WhoStatus::Receiving(_))) {
// We requested, don't save to history
return None;
}
Expand All @@ -721,11 +724,14 @@ impl Client {
channel.last_who =
Some(WhoStatus::Receiving(Some(request_token)));
log::debug!("[{}] {target} - WHO receiving...", self.server);
// We requested, don't save to history
return None;
}
}
}

if matches!(channel.last_who, Some(WhoStatus::Receiving(_))) {
// We requested, don't save to history
return None;
}
}
}
}
Expand Down

0 comments on commit c40ae38

Please sign in to comment.