crypto: Remove an unused argument.
parent
48f43a4af1
commit
f735107caf
|
@ -377,7 +377,6 @@ impl VerificationMachine {
|
||||||
private_identity,
|
private_identity,
|
||||||
d,
|
d,
|
||||||
self.store.clone(),
|
self.store.clone(),
|
||||||
&e.sender,
|
|
||||||
e.content.clone(),
|
e.content.clone(),
|
||||||
self.store.get_user_identity(&e.sender).await?,
|
self.store.get_user_identity(&e.sender).await?,
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -313,7 +313,6 @@ impl RequestState<Ready> {
|
||||||
private_identity,
|
private_identity,
|
||||||
other_device,
|
other_device,
|
||||||
store,
|
store,
|
||||||
&event.sender,
|
|
||||||
(event.room_id.clone(), event.content.clone()),
|
(event.room_id.clone(), event.content.clone()),
|
||||||
other_identity,
|
other_identity,
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,7 +19,7 @@ use std::sync::Arc;
|
||||||
|
|
||||||
use matrix_sdk_common::{
|
use matrix_sdk_common::{
|
||||||
events::{key::verification::cancel::CancelCode, AnyMessageEvent, AnyToDeviceEvent},
|
events::{key::verification::cancel::CancelCode, AnyMessageEvent, AnyToDeviceEvent},
|
||||||
identifiers::{EventId, RoomId, UserId},
|
identifiers::{EventId, RoomId},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -82,7 +82,6 @@ impl InnerSas {
|
||||||
pub fn from_start_event(
|
pub fn from_start_event(
|
||||||
account: ReadOnlyAccount,
|
account: ReadOnlyAccount,
|
||||||
other_device: ReadOnlyDevice,
|
other_device: ReadOnlyDevice,
|
||||||
sender: &UserId,
|
|
||||||
content: impl Into<StartContent>,
|
content: impl Into<StartContent>,
|
||||||
other_identity: Option<UserIdentities>,
|
other_identity: Option<UserIdentities>,
|
||||||
) -> Result<InnerSas, CancelContent> {
|
) -> Result<InnerSas, CancelContent> {
|
||||||
|
|
|
@ -223,14 +223,12 @@ impl Sas {
|
||||||
private_identity: PrivateCrossSigningIdentity,
|
private_identity: PrivateCrossSigningIdentity,
|
||||||
other_device: ReadOnlyDevice,
|
other_device: ReadOnlyDevice,
|
||||||
store: Arc<Box<dyn CryptoStore>>,
|
store: Arc<Box<dyn CryptoStore>>,
|
||||||
sender: &UserId,
|
|
||||||
content: impl Into<StartContent>,
|
content: impl Into<StartContent>,
|
||||||
other_identity: Option<UserIdentities>,
|
other_identity: Option<UserIdentities>,
|
||||||
) -> Result<Sas, OutgoingContent> {
|
) -> Result<Sas, OutgoingContent> {
|
||||||
let inner = InnerSas::from_start_event(
|
let inner = InnerSas::from_start_event(
|
||||||
account.clone(),
|
account.clone(),
|
||||||
other_device.clone(),
|
other_device.clone(),
|
||||||
&sender,
|
|
||||||
content,
|
content,
|
||||||
other_identity.clone(),
|
other_identity.clone(),
|
||||||
)?;
|
)?;
|
||||||
|
|
Loading…
Reference in New Issue