Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion matrix-sdk-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ dependencies {

implementation libs.google.phonenumber

implementation("org.matrix.rustcomponents:crypto-android:0.11.1")
implementation("org.matrix.rustcomponents:crypto-android:26.1.22")
// api project(":library:rustCrypto")

testImplementation libs.tests.junit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,14 @@ internal class OlmMachine @Inject constructor(
val events = adapter.toJson(toDevice ?: ToDeviceSyncResponse())

// field pass in the list of unused fallback keys here
val receiveSyncChanges = inner.receiveSyncChanges(events, devices, counts, deviceUnusedFallbackKeyTypes, nextBatch ?: "")
val receiveSyncChanges = inner.receiveSyncChanges(
events = events,
deviceChanges = devices,
keyCounts = counts,
unusedFallbackKeys = deviceUnusedFallbackKeyTypes,
nextBatchToken = nextBatch ?: "",
decryptionSettings = DecryptionSettings(TrustRequirement.UNTRUSTED),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using the same value TrustRequirement.UNTRUSTED that is used at this point

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at this point

is that the right link? it seems to go back to the same place

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorry, the correct link is

decryptionSettings = DecryptionSettings(TrustRequirement.UNTRUSTED)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference: the change that added this param was matrix-org/matrix-rust-sdk#5319. TrustRequirement.UNTRUSTED appears to be the right option here, at least in the absence of an "Exclude insecure devices" on EA.

)

val outAdapter = moshi.adapter(Event::class.java)

Expand Down
Loading