Skip to content

Commit

Permalink
chore: update to matrix-rust-sdk 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Dec 12, 2024
1 parent 8b33b59 commit 8861808
Show file tree
Hide file tree
Showing 6 changed files with 5,278 additions and 2,149 deletions.
2,062 changes: 1,466 additions & 596 deletions cpp/generated/matrix_sdk_ffi.cpp

Large diffs are not rendered by default.

237 changes: 165 additions & 72 deletions cpp/generated/matrix_sdk_ffi.hpp

Large diffs are not rendered by default.

42 changes: 37 additions & 5 deletions src/generated/matrix_sdk_crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,10 +908,30 @@ export enum UtdCause {
*/
Unknown,
/**
* This event was sent when we were not a member of the room (or invited),
* so it is impossible to decrypt (without MSC3061).
* We are missing the keys for this event, and the event was sent when we
* were not a member of the room (or invited).
*/
Membership,
SentBeforeWeJoined,
/**
* The message was sent by a user identity we have not verified, but the
* user was previously verified.
*/
VerificationViolation,
/**
* The [`crate::TrustRequirement`] requires that the sending device be
* signed by its owner, and it was not.
*/
UnsignedDevice,
/**
* The [`crate::TrustRequirement`] requires that the sending device be
* signed by its owner, and we were unable to securely find the device.
*
* This could be because the device has since been deleted, because we
* haven't yet downloaded it from the server, or because the session
* data was obtained from an insecure source (imported from a file,
* obtained from a legacy (asymmetric) backup, unsafe key forward, etc.)
*/
UnknownDevice,
}

const FfiConverterTypeUtdCause = (() => {
Expand All @@ -923,7 +943,13 @@ const FfiConverterTypeUtdCause = (() => {
case 1:
return UtdCause.Unknown;
case 2:
return UtdCause.Membership;
return UtdCause.SentBeforeWeJoined;
case 3:
return UtdCause.VerificationViolation;
case 4:
return UtdCause.UnsignedDevice;
case 5:
return UtdCause.UnknownDevice;
default:
throw new UniffiInternalError.UnexpectedEnumCase();
}
Expand All @@ -932,8 +958,14 @@ const FfiConverterTypeUtdCause = (() => {
switch (value) {
case UtdCause.Unknown:
return ordinalConverter.write(1, into);
case UtdCause.Membership:
case UtdCause.SentBeforeWeJoined:
return ordinalConverter.write(2, into);
case UtdCause.VerificationViolation:
return ordinalConverter.write(3, into);
case UtdCause.UnsignedDevice:
return ordinalConverter.write(4, into);
case UtdCause.UnknownDevice:
return ordinalConverter.write(5, into);
}
}
allocationSize(value: TypeName): number {
Expand Down
Loading

0 comments on commit 8861808

Please sign in to comment.