Page MenuHomePhabricator

[protos] Remove social_proof from IdentityKeyInfo
ClosedPublic

Authored by bartek on Apr 4 2024, 5:44 AM.
Tags
None
Referenced Files
F3504808: D11549.id38768.diff
Fri, Dec 20, 10:32 AM
F3502700: D11549.diff
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
Unknown Object (File)
Nov 3 2024, 11:41 AM
Unknown Object (File)
Oct 13 2024, 1:43 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
Branch
barthap/protos1
Lint
No Lint Coverage
Unit
No Test Coverage

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
  • 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

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