fix: use empty string for messages without text everywhere

This commit is contained in:
B. Petersen
2019-09-07 13:40:50 +02:00
parent 9605370f0b
commit d9d0dee0d5

View File

@@ -502,7 +502,7 @@ impl<'a> Chat<'a> {
timestamp,
msg.type_0,
msg.state,
msg.text,
msg.text.as_ref().map_or("", String::as_str),
msg.param.to_string(),
msg.hidden,
to_string(new_in_reply_to),