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)
Mon, Dec 23, 3:43 PM
Unknown Object (File)
Mon, Dec 23, 3:43 PM
Unknown Object (File)
Mon, Dec 23, 3:43 PM
Unknown Object (File)
Mon, Dec 23, 3:43 PM
Unknown Object (File)
Mon, Dec 23, 3:43 PM
Unknown Object (File)
Fri, Dec 6, 8:03 AM
Unknown Object (File)
Thu, Nov 28, 4:29 AM
Unknown Object (File)
Tue, Nov 26, 2:17 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.