Page MenuHomePhabricator

Implement notification encryption on native
ClosedPublic

Authored by marcin on Jul 4 2024, 9:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 4:54 AM
Unknown Object (File)
Mon, Apr 14, 3:16 PM
Unknown Object (File)
Fri, Apr 11, 6:09 PM
Unknown Object (File)
Tue, Apr 8, 9:59 AM
Unknown Object (File)
Tue, Apr 8, 6:05 AM
Unknown Object (File)
Tue, Apr 8, 2:24 AM
Unknown Object (File)
Tue, Apr 8, 2:20 AM
Unknown Object (File)
Tue, Apr 8, 1:01 AM
Subscribers

Details

Summary

This differential implements encryption with notifications session on native

Test Plan

Tested in D12673

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-8237
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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
native/cpp/CommonCpp/NativeModules/CommCoreModule.h
141

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

native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.h
120

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

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

olmAPI* - sorry for confusing

native/push/encrypted-notif-utils-api.js
17

Added in next diff