HomePhabricator
Diffusion Comm 2f7a72de1d41

Implement public method to retrieve notifications olm account public keys

Description

Implement public method to retrieve notifications olm account public keys

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.

Reviewers: tomek, kamil, atul, bartek

Reviewed By: bartek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D6778