By hook or by crook, amke empathy open a window

This commit is contained in:
2020-05-18 01:57:22 +01:00
parent cb463336bc
commit 667eb3b3f6
6 changed files with 64 additions and 10 deletions

View File

@@ -49,9 +49,20 @@ impl telepathy::ChannelInterfaceMessages for Channel {
}
fn pending_messages(&self) -> Result<Vec<Vec<HashMap<String, VarArg>>>> {
println!("Channel::pending_messages()");
let out = Vec::new();
/*
let ctx = self.ctx.read().unwrap();
for msg_id in dc::chat::get_chat_msgs(&ctx, self.chat_id, 0, None) {
if let Ok(msg) = dc::msg::Message::load_from_db(&ctx, msg_id) {
let lot = msg.get_summary(&ctx, None);
Ok(vec![]) // FIXME: check for pending messages
if lot
}
}
println!("Channel::pending_messages()");
*/
Ok(out) // FIXME: check for pending messages
}
fn delivery_reporting_support(&self) -> Result<u32> {