Skip to content
Snippets Groups Projects
Commit 0180979e authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

updated the cli so when no id is specified a message is sent to yourself

parent 78e268b4
Branches
Tags
No related merge requests found
......@@ -384,8 +384,14 @@ var rootCmd = &cobra.Command{
cryptoType = parse.E2E
}
// Only send a message if we have a message to send (except dummy messages)
recipientId := id.NewUserFromUints(&[4]uint64{0, 0, 0, destinationUserId})
var recipientId *id.User
if destinationUserId == 0 {
recipientId = userID
} else {
recipientId = id.NewUserFromUints(&[4]uint64{0, 0, 0, destinationUserId})
}
if message != "" {
// Get the recipient's nick
recipientNick := ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment