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

Loading…
Cancel
Save