-
-
Notifications
You must be signed in to change notification settings - Fork 89
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: encrypt notification tokens #6239
Conversation
479af38
to
713d2d5
Compare
55344c4
to
66c93ce
Compare
5344332
to
799ff33
Compare
7dbba6d
to
fe7c4f8
Compare
Now on the server metadata looks like this:
|
038868d
to
f8c110f
Compare
f8c110f
to
3a72e09
Compare
/// | ||
/// If it has not changed, we do not store | ||
/// the device token again. | ||
DeviceToken, |
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.
We can also store EncryptedDeviceToken
and set this every time unconditionally even if device token has not changed just to make it more robust in case the token is lost from chatmail server for whatever reason, but normally this should not happen unless FCM or Apple randomly say that valid token is not valid anymore. On network errors etc. we don't remove tokens from chatmail.
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.
*is not valid anymore?
/// | ||
/// If it has not changed, we do not store | ||
/// the device token again. | ||
DeviceToken, |
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.
*is not valid anymore?
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.
Not my area of expertise since I wasn't involved with notification tokens so far, but AFAICT looks good 👍
3a72e09
to
53b8971
Compare
53b8971
to
4d3c97e
Compare
Closes #6218
Corresponding decryption side:
deltachat/notifiers#41