Skip to content

Commit

Permalink
[identity] fix lastPrimarySignature attribute
Browse files Browse the repository at this point in the history
Summary: While testing restore flow, I discovered device list validation on other clients is not passing, it's because we don't store `lastPrimarySignature` in DDB correctly.

Test Plan: N/A, just carefully reading code - I am going to test this with actual restore after deploying on staging

Reviewers: bartek, tomek

Reviewed By: bartek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D14079
  • Loading branch information
xsanm committed Dec 6, 2024
1 parent 066e576 commit 57275f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/identity/src/database/device_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ impl From<DeviceListRow> for AttributeMap {
}
if let Some(last_signature) = device_list.last_primary_signature {
attrs.insert(
ATTR_CURRENT_SIGNATURE.to_string(),
ATTR_LAST_SIGNATURE.to_string(),
AttributeValue::S(last_signature),
);
}
Expand Down

0 comments on commit 57275f8

Please sign in to comment.