-
Notifications
You must be signed in to change notification settings - Fork 214
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
Capture decryption errors (PSG-1023) #1673
Conversation
@@ -52,6 +52,7 @@ public class PollAggregator { | |||
|
|||
private var events: [MXEvent] = [] | |||
private var hasBeenEdited = false | |||
private var relatedErroredEvents: Set<String> = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Errored
does seem to be grammatical, though I find it a bit unusual and almost looks like a typo. Maybe Failed
would be better? Alternatively if this only captures decryption errors, it could even be relatedUndecryptableEvents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it capture just crypto errors.
relatedUndecryptableEvents
looks better. ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied -> 7a29bc6
Description
This PR adds a logic to consider events not decrypted inside a
PollAggregator
.The final goal is to warn the user when a poll is affected by decryption errors since otherwise the votes count may be different across sessions of the same user or different users in the same room.
Related PR: element-hq/element-ios#7206