mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
cargo fmt
This commit is contained in:
12
src/chat.rs
12
src/chat.rs
@@ -1924,17 +1924,15 @@ pub fn get_info_json(context: &Context, chat_id: u32) -> Result<String, Error> {
|
||||
|
||||
let profile_image = match chat.get_profile_image(context) {
|
||||
Some(path) => path.into_os_string().into_string().unwrap(),
|
||||
None => "".to_string()
|
||||
None => "".to_string(),
|
||||
};
|
||||
|
||||
let draft = match get_draft(context, chat_id) {
|
||||
Ok(message) => {
|
||||
match message {
|
||||
Some(m) => m.text.unwrap_or("".to_string()) ,
|
||||
None => "".to_string()
|
||||
}
|
||||
Ok(message) => match message {
|
||||
Some(m) => m.text.unwrap_or("".to_string()),
|
||||
None => "".to_string(),
|
||||
},
|
||||
Err(_) => "".to_string()
|
||||
Err(_) => "".to_string(),
|
||||
};
|
||||
|
||||
let s = json!({
|
||||
|
||||
Reference in New Issue
Block a user