summaryrefslogtreecommitdiff
path: root/src/identity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity.cpp')
-rw-r--r--src/identity.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/identity.cpp b/src/identity.cpp
index 9077db2..3b8d3bf 100644
--- a/src/identity.cpp
+++ b/src/identity.cpp
@@ -239,14 +239,9 @@ void Identity::Builder::owner(const Identity & val)
IdentityData IdentityData::load(const Ref & ref)
{
if (auto rec = ref->asRecord()) {
- vector<Stored<Signed<IdentityData>>> prev;
- for (auto p : rec->items("SPREV"))
- if (const auto & x = p.as<Signed<IdentityData>>())
- prev.push_back(x.value());
-
if (auto keyIdentity = rec->item("key-id").as<PublicKey>())
return IdentityData {
- .prev = std::move(prev),
+ .prev = rec->items("SPREV").as<Signed<IdentityData>>(),
.name = rec->item("name").asText(),
.owner = rec->item("owner").as<Signed<IdentityData>>(),
.keyIdentity = keyIdentity.value(),