Browse Source

Update input title on join

pull/2/head
Gregory Rudolph 5 years ago
parent
commit
4a49ae20cf
  1. 2
      cmdJoin.go

2
cmdJoin.go

@ -27,6 +27,7 @@ func cmdJoin(cmd []string) {
channel.TopicName = cmd[2] channel.TopicName = cmd[2]
printToView("Feed", fmt.Sprintf("You are joining: @%s#%s", channel.Name, channel.TopicName)) printToView("Feed", fmt.Sprintf("You are joining: @%s#%s", channel.Name, channel.TopicName))
clearView("Chat") clearView("Chat")
viewTitle("Input", fmt.Sprintf(" @%s#%s ", channel.Name, channel.TopicName))
go populateChat() go populateChat()
} else if len(cmd) == 2 { } else if len(cmd) == 2 {
channel.MembersType = keybase.USER channel.MembersType = keybase.USER
@ -34,6 +35,7 @@ func cmdJoin(cmd []string) {
channel.TopicName = "" channel.TopicName = ""
printToView("Feed", fmt.Sprintf("You are joining: @%s", channel.Name)) printToView("Feed", fmt.Sprintf("You are joining: @%s", channel.Name))
clearView("Chat") clearView("Chat")
viewTitle("Input", fmt.Sprintf(" @%s ", channel.Name))
go populateChat() go populateChat()
} else { } else {
printToView("Feed", fmt.Sprintf("To join a team use %sjoin <team> <channel>", cmdPrefix)) printToView("Feed", fmt.Sprintf("To join a team use %sjoin <team> <channel>", cmdPrefix))

Loading…
Cancel
Save