Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement getEncryptionInfoForEvent and deprecate getEventEncryptionInfo #3693

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 4, 2023

Part of element-hq/element-web#25321. This implements a new API which tells the application what sort of "shield" it should display for a given encrypted event.

We have to do it this way because the Rust crypto SDK wants to expose the information in that way (see https://matrix-org.github.io/matrix-rust-sdk/matrix_sdk_common/deserialized_responses/struct.EncryptionInfo.html, and VerificationState::to_shield_state_lax.

The logic here is lifted from the current code in react-sdk, https://github.com/matrix-org/matrix-react-sdk/blob/v3.79.0/src/components/views/rooms/EventTile.tsx#L589-L637.


Here's what your changelog entry will look like:

🦖 Deprecations

  • Implement getEncryptionInfoForEvent and deprecate getEventEncryptionInfo (#3693).

@richvdh richvdh force-pushed the rav/element-r/shields/new_api branch from b515479 to f358337 Compare September 5, 2023 10:26
@richvdh richvdh added this pull request to the merge queue Sep 7, 2023
Merged via the queue into develop with commit 7e691bf Sep 7, 2023
21 checks passed
@richvdh richvdh deleted the rav/element-r/shields/new_api branch September 7, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Deprecation A pull request that makes something deprecated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants