refactor: remove unused argument from set_verified()

It is always PeerstateVerifiedStatus::BidirectVerified
and is always passed as a constant.
This commit is contained in:
link2xt
2023-10-30 14:50:35 +00:00
parent ed2bc9e44d
commit b747dd6ae8
3 changed files with 34 additions and 47 deletions

View File

@@ -30,7 +30,7 @@ use crate::message::{
};
use crate::mimeparser::{parse_message_ids, AvatarAction, MimeMessage, SystemMessage};
use crate::param::{Param, Params};
use crate::peerstate::{Peerstate, PeerstateKeyType, PeerstateVerifiedStatus};
use crate::peerstate::{Peerstate, PeerstateKeyType};
use crate::reaction::{set_msg_reaction, Reaction};
use crate::securejoin::{self, handle_securejoin_handshake, observe_securejoin_on_other_device};
use crate::simplify;
@@ -2342,7 +2342,6 @@ async fn has_verified_encryption(
peerstate.set_verified(
PeerstateKeyType::GossipKey,
fp,
PeerstateVerifiedStatus::BidirectVerified,
contact.get_addr().to_owned(),
)?;
peerstate.save_to_db(&context.sql).await?;