Page MenuHomePhabricator

Implement notification encryption on native
ClosedPublic

Authored by marcin on Jul 4 2024, 9:25 AM.
Tags
None
Referenced Files
F3359278: D12670.id42040.diff
Sun, Nov 24, 8:22 AM
F3359260: D12670.id43073.diff
Sun, Nov 24, 8:10 AM
F3359193: D12670.id43131.diff
Sun, Nov 24, 7:47 AM
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
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