Page MenuHomePhabricator

Implement notification encryption on native
ClosedPublic

Authored by marcin on Jul 4 2024, 9:25 AM.
Tags
None
Referenced Files
F3358589: D12670.diff
Sun, Nov 24, 5:35 AM
Unknown Object (File)
Wed, Nov 20, 3:42 AM
Unknown Object (File)
Wed, Nov 20, 3:42 AM
Unknown Object (File)
Wed, Nov 20, 3:42 AM
Unknown Object (File)
Wed, Nov 20, 3:42 AM
Unknown Object (File)
Wed, Nov 20, 3:42 AM
Unknown Object (File)
Wed, Nov 20, 3:41 AM
Unknown Object (File)
Wed, Nov 20, 2:44 AM
Subscribers

Details

Summary

This differential implements encryption with notifications session on native

Test Plan

Tested in D12673

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcin requested review of this revision.Jul 4 2024, 9:42 AM
tomek added inline comments.
native/push/encrypted-notif-utils-api.js
21 ↗(On Diff #42040)

Isn't this conversion equivalent?

This revision is now accepted and ready to land.Jul 8 2024, 4:22 AM
native/push/encrypted-notif-utils-api.js
21 ↗(On Diff #42040)

Type definition at line 13 expects literal union of 1 | 0 while toString() can yield any string. Flow complains when this change is applied.

kamil added a subscriber: kamil.
kamil added inline comments.
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
1577–1584 ↗(On Diff #42040)
native/cpp/CommonCpp/NativeModules/CommCoreModule.h
141 ↗(On Diff #42040)

is it change accidental? If not please update .cpp file and Schema in .js file

native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.h
120 ↗(On Diff #42040)

in CommCoreModuleSchema it makes sense to keep the suffix but here because it's NotificationsCryptoModule it seems redundant

native/push/encrypted-notif-utils-api.js
17 ↗(On Diff #42040)

I prefer to add encryptNotification to sqliteAPI and use it here (and on web), but up to you

native/push/encrypted-notif-utils-api.js
17 ↗(On Diff #42040)

olmAPI* - sorry for confusing

native/push/encrypted-notif-utils-api.js
17 ↗(On Diff #42040)

Added in next diff