Page MenuHomePhabricator

[protos] Remove social_proof from IdentityKeyInfo
ClosedPublic

Authored by bartek on Apr 4 2024, 5:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 3:23 PM
Unknown Object (File)
Fri, Dec 20, 11:04 AM
Unknown Object (File)
Fri, Dec 20, 10:32 AM
Unknown Object (File)
Fri, Dec 20, 4:52 AM
Unknown Object (File)
Sun, Dec 8, 1:37 AM
Unknown Object (File)
Fri, Dec 6, 10:27 AM
Unknown Object (File)
Fri, Dec 6, 7:33 AM
Unknown Object (File)
Thu, Dec 5, 5:32 PM
Subscribers

Details

Summary

Addresses ENG-7530.

Removed the already-unused social_proof field from IdentityKeyInfo proto message type.

Depends on D11548

Test Plan

Everything still compiles, commtest able to call login/registration and X3DH RPCs as before.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Apr 4 2024, 6:30 AM
bartek added inline comments.
services/identity/src/database.rs
350โ€“359 โ†—(On Diff #38768)
  • The comment was out of date
  • There's no need to get full user data by it's user_id just to retrieve user_id ๐Ÿ˜‰
services/identity/src/database.rs
350โ€“359 โ†—(On Diff #38768)

haha yeah i was really confused by this code... thanks for cleaning it up!

ashoat added inline comments.
web/grpc/identity-service-client-wrapper.js
201 โ†—(On Diff #38770)

Why do we use toObject here but not in getKeyserverKeys? Is it because we need to iterate here, but not in getKeyserverKeys?

This revision is now accepted and ready to land.Apr 5 2024, 6:45 AM
bartek added inline comments.
web/grpc/identity-service-client-wrapper.js
201 โ†—(On Diff #38770)

Not sure, but probably yes. Accessing response.getDevicesMap() returns Map<string, OutboundKeyInfoObject>, but toObject().devicesMap returns an array of tuples.

cc @kamil who authored this code