added test caption

This commit is contained in:
P0lunin 2019-10-23 12:59:58 +03:00
parent ec11b9ed3a
commit 03b0e41fa0

View file

@ -9,7 +9,12 @@ impl Filter<Message> for MessageTextFilter {
fn test(&self, value: &Message) -> bool {
match value.text() {
Some(text) => self.text == text,
None => false
None => {
match value.caption() {
Some(caption) => self.text == caption,
None => false
}
}
}
}
}