Fix messages on remote-initiated chats

This commit is contained in:
2020-05-21 10:49:33 +01:00
parent db7ecc6d98
commit d77d04e9b1
3 changed files with 17 additions and 12 deletions

View File

@@ -108,9 +108,11 @@ impl telepathy::ChannelInterfaceMessages for Channel {
for msg_id in dc::chat::get_chat_msgs(&ctx, self.chat_id, 0, None) {
if let Ok(msg) = dc::message::Message::load_from_db(&ctx, msg_id) {
println!(" A message: {:?}", msg);
match msg.get_state() {
MessageState::InFresh | MessageState::InNoticed => out.push(convert_msg(&msg)),
MessageState::InFresh | MessageState::InNoticed => {
println!(" A message: {:?}", msg);
out.push(convert_msg(&msg))
}
_ => continue,
}
}