crypto: Remove an unused argument.

master
Damir Jelić 2020-12-17 17:03:42 +01:00
parent 48f43a4af1
commit f735107caf
4 changed files with 1 additions and 6 deletions

View File

@ -377,7 +377,6 @@ impl VerificationMachine {
private_identity,
d,
self.store.clone(),
&e.sender,
e.content.clone(),
self.store.get_user_identity(&e.sender).await?,
) {

View File

@ -313,7 +313,6 @@ impl RequestState<Ready> {
private_identity,
other_device,
store,
&event.sender,
(event.room_id.clone(), event.content.clone()),
other_identity,
)

View File

@ -19,7 +19,7 @@ use std::sync::Arc;
use matrix_sdk_common::{
events::{key::verification::cancel::CancelCode, AnyMessageEvent, AnyToDeviceEvent},
identifiers::{EventId, RoomId, UserId},
identifiers::{EventId, RoomId},
};
use crate::{
@ -82,7 +82,6 @@ impl InnerSas {
pub fn from_start_event(
account: ReadOnlyAccount,
other_device: ReadOnlyDevice,
sender: &UserId,
content: impl Into<StartContent>,
other_identity: Option<UserIdentities>,
) -> Result<InnerSas, CancelContent> {

View File

@ -223,14 +223,12 @@ impl Sas {
private_identity: PrivateCrossSigningIdentity,
other_device: ReadOnlyDevice,
store: Arc<Box<dyn CryptoStore>>,
sender: &UserId,
content: impl Into<StartContent>,
other_identity: Option<UserIdentities>,
) -> Result<Sas, OutgoingContent> {
let inner = InnerSas::from_start_event(
account.clone(),
other_device.clone(),
&sender,
content,
other_identity.clone(),
)?;