Gracefully handle verification events that are unknown locally (#90)

This commit is contained in:
Ulyssa 2023-05-01 21:33:12 -07:00
parent 5df9fe7960
commit cc1d2f3bf8
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64

View file

@ -845,11 +845,12 @@ impl ClientWorker {
let request = client
.encryption()
.get_verification_request(&ev.sender, &ev.content.transaction_id)
.await
.unwrap();
.await;
if let Some(request) = request {
request.accept().await.unwrap();
}
}
},
);