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

feat(crypto): Add optional withheld reason to UnableToDecryptReason #4305

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BillCarsonFr
Copy link
Member

Fixes #4270

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@@ -718,7 +733,12 @@ impl UnableToDecryptReason {
/// Returns true if this UTD is due to a missing room key (and hence might
/// resolve itself if we wait a bit.)
pub fn is_missing_room_key(&self) -> bool {
matches!(self, Self::MissingMegolmSession | Self::UnknownMegolmMessageIndex)
match self {
Copy link
Member Author

Choose a reason for hiding this comment

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

The doc says here that true means that ( [it] might resolve itself if we wait a bit.)
If we have a withheld code waiting won't help. It is used by the notification client to decide if it should work for an additional encryption sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message key "withheld" reasons are not shown in UI nor reported to Posthog
1 participant