Element-R: Fix up message shields #25321
Labels
A-Element-R
Issues affecting the port of Element's crypto layer to Rust
T-Task
Tasks for the team like planning
The current way of doing this in the rust sdk is that
VerificationState.to_shield_state_*
returns aShieldState
, which includes a colour (red/grey/none) and a freeform text field. The latter isn’t great for EW, because we need to maintain a list of translations. It would be preferable to return an enum of some kind. Maybe we can just use the VerificationState and cargo-cult the logic into the js-sdk.Define a new method
CryptoApi.getShieldForEvent
CryptoApi.getEncryptionInfoForEvent
. It should return a colour (red/grey/none) and a reason (from an enum).Implement
getEncryptionInfoForEvent
and deprecategetEventEncryptionInfo
matrix-org/matrix-js-sdk#3693Estimate: 2d
Replace event verification logic with new code in js-sdk matrix-org/matrix-react-sdk#11528: Update EventTile to call getShieldForEvent instead of doing its own verify dance.
Significant update to the tests for EventTile.
Estimate: 1d
Rust implementation of
getEncryptionInfoForEvent
matrix-org/matrix-js-sdk#3718: Implement in rustEnable cypress tests for shields with rust crypto matrix-org/matrix-react-sdk#11589 Enable cypress tests for rust
Total estimate: 3.5d, plus updates for existing events.
The text was updated successfully, but these errors were encountered: