mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
Fix one clippy::unneeded_unwrap warning
This commit is contained in:
@@ -303,11 +303,8 @@ impl<'a> Chat<'a> {
|
|||||||
"Cannot send message; self not in group.",
|
"Cannot send message; self not in group.",
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
let from = context.sql.get_config(context, "configured_addr");
|
if let Some(from) = context.sql.get_config(context, "configured_addr") {
|
||||||
if from.is_none() {
|
let from_c = CString::yolo(from);
|
||||||
error!(context, 0, "Cannot send message, not configured.",);
|
|
||||||
} else {
|
|
||||||
let from_c = CString::yolo(from.unwrap());
|
|
||||||
new_rfc724_mid = dc_create_outgoing_rfc724_mid(
|
new_rfc724_mid = dc_create_outgoing_rfc724_mid(
|
||||||
if self.typ == Chattype::Group || self.typ == Chattype::VerifiedGroup {
|
if self.typ == Chattype::Group || self.typ == Chattype::VerifiedGroup {
|
||||||
self.grpid.strdup()
|
self.grpid.strdup()
|
||||||
@@ -529,6 +526,8 @@ impl<'a> Chat<'a> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
error!(context, 0, "Cannot send message, not configured.",);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user