fixup! feat(cli): allow printing selected DDS messages to the console

This commit is contained in:
Mika Vilpas 2024-05-04 18:16:23 +03:00 committed by sxyazi
parent 0f40d2ec6e
commit 4bb3f37949
No known key found for this signature in database

View file

@ -93,8 +93,12 @@ impl Client {
let payload = Payload::from_str(&line).unwrap();
if line.starts_with("hey,") {
Self::handle_hey(&line);
if sender.matches(payload.sender) {
println!("{}", line);
if !sender.matches(payload.sender) {
continue;
}
if kinds.contains(payload.body.kind()) {
println!("{}", &line);
}
} else {
if ! sender.matches(payload.sender) {