add updatedevicechats command to repl tool

This commit is contained in:
B. Petersen
2019-12-02 16:15:05 +01:00
parent 521e44bd54
commit 61e97e5e6f

View File

@@ -837,6 +837,9 @@ pub unsafe fn dc_cmdline(context: &Context, line: &str) -> Result<(), failure::E
msg.set_text(Some(arg1.to_string()));
chat::add_device_msg(context, None, Some(&mut msg))?;
}
"updatedevicechats" => {
context.update_device_chats()?;
}
"listmedia" => {
ensure!(sel_chat.is_some(), "No chat selected.");