mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 16:36:59 +03:00
cargo fmt
This commit is contained in:
@@ -1410,8 +1410,6 @@ pub fn dc_get_chat_contacts(context: &Context, chat_id: u32) -> *mut dc_array_t
|
|||||||
/* Normal chats do not include SELF. Group chats do (as it may happen that one is deleted from a
|
/* Normal chats do not include SELF. Group chats do (as it may happen that one is deleted from a
|
||||||
groupchat but the chats stays visible, moreover, this makes displaying lists easier) */
|
groupchat but the chats stays visible, moreover, this makes displaying lists easier) */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let ret = if chat_id != 1 {
|
let ret = if chat_id != 1 {
|
||||||
// we could also create a list for all contacts in the deaddrop by searching contacts belonging to chats with
|
// we could also create a list for all contacts in the deaddrop by searching contacts belonging to chats with
|
||||||
// chats.blocked=2, however, currently this is not needed
|
// chats.blocked=2, however, currently this is not needed
|
||||||
@@ -1433,18 +1431,17 @@ pub fn dc_get_chat_contacts(context: &Context, chat_id: u32) -> *mut dc_array_t
|
|||||||
|
|
||||||
Ok(ret.into_raw())
|
Ok(ret.into_raw())
|
||||||
},
|
},
|
||||||
).ok()
|
)
|
||||||
|
.ok()
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if let Some(chat_contacts) = ret {
|
if let Some(chat_contacts) = ret {
|
||||||
chat_contacts
|
chat_contacts
|
||||||
} else {
|
} else {
|
||||||
dc_array_t::new(0).into_raw()
|
dc_array_t::new(0).into_raw()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn dc_get_chat(context: &Context, chat_id: uint32_t) -> *mut Chat {
|
pub unsafe fn dc_get_chat(context: &Context, chat_id: uint32_t) -> *mut Chat {
|
||||||
|
|||||||
Reference in New Issue
Block a user