-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4024 from element-hq/renovate/org.matrix.rustcomp…
…onents-sdk-android-0.x Update dependency org.matrix.rustcomponents:sdk-android to v0.2.71
- Loading branch information
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...kotlin/io/element/android/libraries/matrix/impl/fixtures/factories/UnableToDecryptInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2024 New Vector Ltd. | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
* Please see LICENSE in the repository root for full details. | ||
*/ | ||
|
||
package io.element.android.libraries.matrix.impl.fixtures.factories | ||
|
||
import org.matrix.rustcomponents.sdk.UnableToDecryptInfo | ||
import uniffi.matrix_sdk_crypto.UtdCause | ||
|
||
internal fun aRustUnableToDecryptInfo( | ||
eventId: String, | ||
timeToDecryptMs: ULong?, | ||
cause: UtdCause, | ||
eventLocalAgeMillis: Long = 0L, | ||
userTrustsOwnIdentity: Boolean = false, | ||
senderHomeserver: String = "", | ||
ownHomeserver: String = "", | ||
): UnableToDecryptInfo { | ||
return UnableToDecryptInfo( | ||
eventId = eventId, | ||
timeToDecryptMs = timeToDecryptMs, | ||
cause = cause, | ||
eventLocalAgeMillis = eventLocalAgeMillis, | ||
userTrustsOwnIdentity = userTrustsOwnIdentity, | ||
senderHomeserver = senderHomeserver, | ||
ownHomeserver = ownHomeserver, | ||
) | ||
} |