File tree Expand file tree Collapse file tree
matrix-sdk-crypto-ffi/src
crates/matrix-sdk-crypto/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -833,8 +833,7 @@ impl OlmMachine {
833833 /// This method can be used to pass verification events that are happening
834834 /// in unencrypted rooms to the `OlmMachine`.
835835 ///
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.
838837 pub fn receive_unencrypted_verification_event (
839838 & self ,
840839 event : & str ,
@@ -846,7 +845,7 @@ impl OlmMachine {
846845 /// Receive a verification event.
847846 ///
848847 /// 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.
850849 pub fn receive_verification_event (
851850 & self ,
852851 event : & str ,
Original file line number Diff line number Diff line change @@ -635,8 +635,8 @@ impl OlmMachine {
635635
636636 /// Receive a verification event.
637637 ///
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 .
640640 #[ wasm_bindgen( js_name = "receiveVerificationEvent" ) ]
641641 pub fn receive_verification_event ( & self , event : & str ) -> Result < Promise , JsError > {
642642 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 {
740740
741741 /// Receive a verification event.
742742 ///
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.
744744 /// in rooms to the `OlmMachine`.
745745 pub async fn receive_verification_event ( & self , event : & AnyMessageLikeEvent ) -> StoreResult < ( ) > {
746746 self . verification_machine . receive_any_event ( event) . await
You can’t perform that action at this time.
0 commit comments