Page MenuHomePhabricator

Implement public method to retrieve notifications olm account public keys
ClosedPublic

Authored by marcin on Feb 20 2023, 5:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 9:06 AM
Unknown Object (File)
Sun, Apr 28, 9:06 AM
Unknown Object (File)
Sun, Apr 28, 9:06 AM
Unknown Object (File)
Sun, Apr 28, 9:06 AM
Unknown Object (File)
Sun, Apr 28, 9:06 AM
Unknown Object (File)
Sun, Apr 28, 9:02 AM
Unknown Object (File)
Sun, Apr 28, 8:20 AM
Unknown Object (File)
Wed, Apr 3, 9:50 PM
Subscribers

Details

Summary

This differential imppements public method to retrieve notifications olm account public keys. It wraps around CryptoModule::getIdentityKeys() method and adds additional check to ensure method is not called before notifications olm account is correctly initialized.

Test Plan

In CommCoreModule::initializeCryptoAccount call NotificationsCryptoAccount::initializeNotificationsCryptoAccount and then NotificationsCryptoAccount::getNotificationsIdentityKeys(). Ensure string returned is JSON containing correct olm public keys. This test is an e2e
test that also tests previous differential even more reliably.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcin published this revision for review.Feb 20 2023, 5:28 AM
This revision is now accepted and ready to land.Feb 22 2023, 12:50 AM