Skip to content

Commit 3641e0d

Browse files
committed
docs(crypto): Note that the in-room verification events need to be decrypted
1 parent e1d8c72 commit 3641e0d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

bindings/matrix-sdk-crypto-ffi/src/machine.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

bindings/matrix-sdk-crypto-js/src/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)?;

crates/matrix-sdk-crypto/src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)