mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-06 23:15:08 -04:00
crypto: Remove an unused argument.
This commit is contained in:
@@ -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?,
|
||||
) {
|
||||
|
||||
@@ -313,7 +313,6 @@ impl RequestState<Ready> {
|
||||
private_identity,
|
||||
other_device,
|
||||
store,
|
||||
&event.sender,
|
||||
(event.room_id.clone(), event.content.clone()),
|
||||
other_identity,
|
||||
)
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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(),
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user