Page MenuHomePhabricator

[protos] Remove social_proof from IdentityKeyInfo
ClosedPublic

Authored by bartek on Thu, Apr 4, 5:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 3:46 PM
Unknown Object (File)
Thu, Apr 11, 9:33 PM
Unknown Object (File)
Wed, Apr 10, 7:00 PM
Unknown Object (File)
Wed, Apr 10, 8:22 AM
Unknown Object (File)
Tue, Apr 9, 7:07 PM
Unknown Object (File)
Tue, Apr 9, 10:21 AM
Unknown Object (File)
Mon, Apr 8, 9:13 AM
Unknown Object (File)
Mon, Apr 8, 6:36 AM
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.Thu, Apr 4, 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.Fri, Apr 5, 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