mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Resultify Peerstate::from_fingerprint
This commit is contained in:
committed by
link2xt
parent
cfd222a109
commit
5bfa82e7ec
@@ -987,7 +987,7 @@ async fn could_not_establish_secure_connection(
|
||||
|
||||
async fn mark_peer_as_verified(context: &Context, fingerprint: &Fingerprint) -> Result<(), Error> {
|
||||
if let Some(ref mut peerstate) =
|
||||
Peerstate::from_fingerprint(context, &context.sql, fingerprint).await
|
||||
Peerstate::from_fingerprint(context, &context.sql, fingerprint).await?
|
||||
{
|
||||
if peerstate.set_verified(
|
||||
PeerstateKeyType::PublicKey,
|
||||
|
||||
Reference in New Issue
Block a user