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)
Thu, Sep 26, 9:41 PM
Unknown Object (File)
Mon, Sep 16, 6:49 AM
Unknown Object (File)
Sat, Sep 14, 5:16 PM
Unknown Object (File)
Sun, Sep 8, 3:03 PM
Unknown Object (File)
Sun, Sep 8, 3:02 PM
Unknown Object (File)
Sun, Sep 8, 3:02 PM
Unknown Object (File)
Sat, Sep 7, 1:45 PM
Unknown Object (File)
Sat, Sep 7, 1:45 PM
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