Page MenuHomePhabricator

[lib] add `deviceID` prop to Tunnelbroker's `MessageProcessed`
ClosedPublic

Authored by kamil on May 16 2024, 9:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:26 PM
Unknown Object (File)
Oct 14 2024, 4:26 PM
Unknown Object (File)
Sep 4 2024, 1:43 AM
Unknown Object (File)
Sep 4 2024, 1:43 AM
Unknown Object (File)
Sep 4 2024, 1:43 AM
Subscribers

Details

Summary

This is needed to remove processed message form OutboundP2PMessage's table.

Depends on D12076

Test Plan

Test sending confirmation, use app for a while to make sure this not interfere with processing store ops (login/logout).

Diff Detail

Repository
rCOMM Comm
Branch
publish-broadcasting
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 16 2024, 9:39 AM
lib/handlers/db-ops-handler.react.js
51

Open question:
Does calling identityContext.getAuthMetadata() has any advantages over fetching deviceID from Olm using getContentSigningKey() from lib/utils/crypto-utils.js?

lib/handlers/db-ops-handler.react.js
51

Overall yes, getAuthMetadata caches values and on native is subscribed to the emitter which means is reactive to changes of accessToken.

But looking at implementation, for only deviceID is doesn't really matter which method we'll use, this is more about readability. I am open to updating this to use getContentSigningKey(). (cc. @tomek)

bartek added inline comments.
lib/handlers/db-ops-handler.react.js
51

Yeah I'm talking specifically about deviceID.

This revision is now accepted and ready to land.May 20 2024, 1:52 AM
lib/handlers/db-ops-handler.react.js
51

I updated getContentSigningKey and created ENG-8192 to discuss some improvements.