added test caption

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

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
}
}
}
}
}