From 001f7bec14621bcfbe235025eb59394fbd2d6331 Mon Sep 17 00:00:00 2001
From: jbhusson <jonah@elixxir.io>
Date: Wed, 18 Aug 2021 12:26:08 -0400
Subject: [PATCH] add raw username to fact list in parseContacts

---
 ud/search.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ud/search.go b/ud/search.go
index 8c95c0866..bfb754ec8 100644
--- a/ud/search.go
+++ b/ud/search.go
@@ -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
-- 
GitLab