File tree 3 files changed +5
-6
lines changed
matrix-sdk-crypto-ffi/src
crates/matrix-sdk-crypto/src
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -833,8 +833,7 @@ impl OlmMachine {
833
833
/// This method can be used to pass verification events that are happening
834
834
/// in unencrypted rooms to the `OlmMachine`.
835
835
///
836
- /// **Note**: This does not need to be called for encrypted events since
837
- /// those will get passed to the `OlmMachine` during decryption.
836
+ /// **Note**: This has been deprecated.
838
837
pub fn receive_unencrypted_verification_event (
839
838
& self ,
840
839
event : & str ,
@@ -846,7 +845,7 @@ impl OlmMachine {
846
845
/// Receive a verification event.
847
846
///
848
847
/// This method can be used to pass verification events that are happening
849
- /// in rooms to the `OlmMachine`.
848
+ /// in rooms to the `OlmMachine`. The event should be in the decrypted form.
850
849
pub fn receive_verification_event (
851
850
& self ,
852
851
event : & str ,
Original file line number Diff line number Diff line change @@ -635,8 +635,8 @@ impl OlmMachine {
635
635
636
636
/// Receive a verification event.
637
637
///
638
- /// This method can be used to pass verification events that are
639
- /// happening in rooms to the `OlmMachine`.
638
+ /// This method can be used to pass verification events that are happening
639
+ /// in rooms to the `OlmMachine`. The event should be in the decrypted form .
640
640
#[ wasm_bindgen( js_name = "receiveVerificationEvent" ) ]
641
641
pub fn receive_verification_event ( & self , event : & str ) -> Result < Promise , JsError > {
642
642
let event: ruma:: events:: AnyMessageLikeEvent = serde_json:: from_str ( event) ?;
Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ impl OlmMachine {
740
740
741
741
/// Receive a verification event.
742
742
///
743
- /// This method can be used to pass verification events that are happening
743
+ /// in rooms to the `OlmMachine`. The event should be in the decrypted form.
744
744
/// in rooms to the `OlmMachine`.
745
745
pub async fn receive_verification_event ( & self , event : & AnyMessageLikeEvent ) -> StoreResult < ( ) > {
746
746
self . verification_machine . receive_any_event ( event) . await
You can’t perform that action at this time.
0 commit comments