Skip to content
Snippets Groups Projects
Commit cf584faf authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Make sure we write the contact and use the user contact object when sending to ourselves

parent a0ba4f13
No related branches found
No related tags found
No related merge requests found
...@@ -137,13 +137,8 @@ var rootCmd = &cobra.Command{ ...@@ -137,13 +137,8 @@ var rootCmd = &cobra.Command{
} }
user := client.GetUser() user := client.GetUser()
contactBytes, _ := user.GetContact().Marshal()
jww.INFO.Printf("User: %s", user.ID) jww.INFO.Printf("User: %s", user.ID)
writeContact(user.GetContact())
jww.INFO.Printf("Contact User Bytes: %s", contactBytes)
jww.INFO.Printf("My User Contact: %s",
base64.StdEncoding.EncodeToString(contactBytes))
// Set up reception handler // Set up reception handler
swboard := client.GetSwitchboard() swboard := client.GetSwitchboard()
...@@ -196,6 +191,7 @@ var rootCmd = &cobra.Command{ ...@@ -196,6 +191,7 @@ var rootCmd = &cobra.Command{
if recipientID == nil { if recipientID == nil {
jww.INFO.Printf("sending message to self") jww.INFO.Printf("sending message to self")
recipientID = user.ID recipientID = user.ID
recipientContact = user.GetContact()
} }
// Accept auth request for this recipient // Accept auth request for this recipient
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment