mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
show full chatlist by just entering 'chats' in cmdline
This commit is contained in:
@@ -604,7 +604,12 @@ pub unsafe fn dc_cmdline(context: &Context, line: &str) -> Result<(), failure::E
|
|||||||
}
|
}
|
||||||
"listchats" | "listarchived" | "chats" => {
|
"listchats" | "listarchived" | "chats" => {
|
||||||
let listflags = if arg0 == "listarchived" { 0x01 } else { 0 };
|
let listflags = if arg0 == "listarchived" { 0x01 } else { 0 };
|
||||||
let chatlist = Chatlist::try_load(context, listflags, Some(arg1), None)?;
|
let chatlist = Chatlist::try_load(
|
||||||
|
context,
|
||||||
|
listflags,
|
||||||
|
if arg1.is_empty() { None } else { Some(arg1) },
|
||||||
|
None,
|
||||||
|
)?;
|
||||||
|
|
||||||
let cnt = chatlist.len();
|
let cnt = chatlist.len();
|
||||||
if cnt > 0 {
|
if cnt > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user