mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 23:36:30 +03:00
use boolean for add_archived_link_item
This commit is contained in:
@@ -86,7 +86,7 @@ impl Chatlist {
|
|||||||
query: Option<&str>,
|
query: Option<&str>,
|
||||||
query_contact_id: Option<u32>,
|
query_contact_id: Option<u32>,
|
||||||
) -> Result<Self> {
|
) -> Result<Self> {
|
||||||
let mut add_archived_link_item = 0;
|
let mut add_archived_link_item = false;
|
||||||
|
|
||||||
// select with left join and minimum:
|
// select with left join and minimum:
|
||||||
// - the inner select must use `hidden` and _not_ `m.hidden`
|
// - the inner select must use `hidden` and _not_ `m.hidden`
|
||||||
@@ -184,12 +184,12 @@ impl Chatlist {
|
|||||||
if last_deaddrop_fresh_msg_id > 0 {
|
if last_deaddrop_fresh_msg_id > 0 {
|
||||||
ids.insert(0, (DC_CHAT_ID_DEADDROP, last_deaddrop_fresh_msg_id));
|
ids.insert(0, (DC_CHAT_ID_DEADDROP, last_deaddrop_fresh_msg_id));
|
||||||
}
|
}
|
||||||
add_archived_link_item = 1;
|
add_archived_link_item = true;
|
||||||
}
|
}
|
||||||
ids
|
ids
|
||||||
};
|
};
|
||||||
|
|
||||||
if 0 != add_archived_link_item && dc_get_archived_cnt(context) > 0 {
|
if add_archived_link_item && dc_get_archived_cnt(context) > 0 {
|
||||||
if ids.is_empty() && 0 != listflags & DC_GCL_ADD_ALLDONE_HINT {
|
if ids.is_empty() && 0 != listflags & DC_GCL_ADD_ALLDONE_HINT {
|
||||||
ids.push((DC_CHAT_ID_ALLDONE_HINT, 0));
|
ids.push((DC_CHAT_ID_ALLDONE_HINT, 0));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user