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

Change channel name arg to not conflict with group

parent 4057fc63
Branches
Tags
2 merge requests!510Release,!458Change channel name arg to not conflict with group
......@@ -81,6 +81,7 @@ var broadcastCmd = &cobra.Command{
if viper.GetBool(broadcastNewFlag) {
// Create a new broadcast channel
jww.INFO.Printf("Name: %s", name)
channel, pk, err = crypto.NewChannel(name, desc, crypto.Public,
user.GetCmix().GetMaxMessageLength(), user.GetRng().GetStream())
if err != nil {
......
......@@ -12,6 +12,7 @@ package cmd
// flags for any existing or new subcommands should be listed and organized
// here. Pulling flags using Viper should use the constants defined here.
// todo: fill this with all existing flags, replace hardcoded references with
//
// these constants. This makes renaming them easier, as well as having
// a consolidated place in code for these flags.
const (
......@@ -85,7 +86,7 @@ const (
legacyFlag = "legacy"
///////////////// Broadcast subcommand flags //////////////////////////////
broadcastNameFlag = "name"
broadcastNameFlag = "channelName"
broadcastRsaPubFlag = "rsaPub"
broadcastSaltFlag = "salt"
broadcastDescriptionFlag = "description"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment