mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-04-01 17:13:13 +00:00
linter fix
This commit is contained in:
parent
c40bb3c361
commit
d9746c5802
@ -136,7 +136,7 @@ pub fn create_new_private_convo(
|
|||||||
/// The ListConvoResult must be freed.
|
/// The ListConvoResult must be freed.
|
||||||
#[ffi_export]
|
#[ffi_export]
|
||||||
pub fn list_conversations(ctx: &mut ContextHandle) -> ListConvoResult {
|
pub fn list_conversations(ctx: &mut ContextHandle) -> ListConvoResult {
|
||||||
return match ctx.0.list_conversations() {
|
match ctx.0.list_conversations() {
|
||||||
Ok(ids) => {
|
Ok(ids) => {
|
||||||
let ffi_ids: Vec<repr_c::String> =
|
let ffi_ids: Vec<repr_c::String> =
|
||||||
ids.into_iter().map(|id| id.to_string().into()).collect();
|
ids.into_iter().map(|id| id.to_string().into()).collect();
|
||||||
@ -149,7 +149,7 @@ pub fn list_conversations(ctx: &mut ContextHandle) -> ListConvoResult {
|
|||||||
error_code: ErrorCode::UnknownError as i32,
|
error_code: ErrorCode::UnknownError as i32,
|
||||||
convo_ids: repr_c::Vec::EMPTY,
|
convo_ids: repr_c::Vec::EMPTY,
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sends content to an existing conversation
|
/// Sends content to an existing conversation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user