From 47a807b700f1a7eea66cced45a7adae80bcd6c31 Mon Sep 17 00:00:00 2001
From: josh <josh@elixxir.io>
Date: Mon, 20 Jun 2022 15:44:57 -0700
Subject: [PATCH] Move bug fix line for UD down to proper spot

---
 xxdk/cmix.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xxdk/cmix.go b/xxdk/cmix.go
index d8a05defb..5e2d919e9 100644
--- a/xxdk/cmix.go
+++ b/xxdk/cmix.go
@@ -331,7 +331,6 @@ func LoginWithProtoClient(storageDir string, password []byte,
 		return nil, err
 	}
 
-	c.network.AddIdentity(c.GetUser().ReceptionID, time.Time{}, true)
 	c.storage.SetNDF(def)
 
 	err = c.initPermissioning(def)
@@ -344,6 +343,8 @@ func LoginWithProtoClient(storageDir string, password []byte,
 		return nil, err
 	}
 
+	c.network.AddIdentity(c.GetUser().ReceptionID, time.Time{}, true)
+
 	// FIXME: The callbacks need to be set, so I suppose we would need to
 	//        either set them via a special type or add them
 	//        to the login call?
-- 
GitLab