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)
Sun, Nov 3, 11:41 AM
Unknown Object (File)
Oct 13 2024, 1:43 AM
Unknown Object (File)
Oct 13 2024, 1:43 AM
Unknown Object (File)
Oct 13 2024, 1:43 AM
Unknown Object (File)
Oct 13 2024, 1:43 AM
Unknown Object (File)
Oct 13 2024, 1:43 AM
Unknown Object (File)
Sep 27 2024, 3:29 PM
Unknown Object (File)
Sep 18 2024, 4:56 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
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