mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Code style
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::time::{Duration, SystemTime};
|
use std::time::{Duration, SystemTime};
|
||||||
|
|
||||||
|
use anyhow::Context as _;
|
||||||
use async_std::path::{Path, PathBuf};
|
use async_std::path::{Path, PathBuf};
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use num_traits::FromPrimitive;
|
use num_traits::FromPrimitive;
|
||||||
@@ -775,10 +776,10 @@ impl Chat {
|
|||||||
bail!("Cannot set message; self not in group.");
|
bail!("Cannot set message; self not in group.");
|
||||||
}
|
}
|
||||||
|
|
||||||
let from = match context.get_config(Config::ConfiguredAddr).await {
|
let from = context
|
||||||
Some(from) => from,
|
.get_config(Config::ConfiguredAddr)
|
||||||
None => bail!("Cannot prepare message for sending, address is not configured."),
|
.await
|
||||||
};
|
.context("Cannot prepare message for sending, address is not configured.")?;
|
||||||
|
|
||||||
let new_rfc724_mid = {
|
let new_rfc724_mid = {
|
||||||
let grpid = match self.typ {
|
let grpid = match self.typ {
|
||||||
|
|||||||
Reference in New Issue
Block a user