Skip to content
Snippets Groups Projects
Commit 001f7bec authored by Jonah Husson's avatar Jonah Husson
Browse files

add raw username to fact list in parseContacts

parent 33fd046a
No related branches found
No related tags found
2 merge requests!23Release,!6Bob/contact
......@@ -74,7 +74,7 @@ func (m *Manager) searchResponseHandler(factMap map[string]fact.Fact,
}
//return an error if no facts are found
if len(searchResponse.Contacts)==0{
if len(searchResponse.Contacts) == 0 {
go callback(nil, errors.New("No contacts found in search"))
}
......@@ -124,7 +124,7 @@ func (m *Manager) parseContacts(response []*Contact,
contacts[i] = contact.Contact{
ID: uid,
DhPubKey: m.grp.NewIntFromBytes(c.PubKey),
Facts: []fact.Fact{},
Facts: []fact.Fact{{c.Username, fact.Username}},
}
// Assign each Fact with a matching hash to the Contact
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment