1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-25 12:03:33 +00:00

Globalization

This commit is contained in:
Gregory Rudolph
2019-10-03 08:31:39 -04:00
parent 339bd1e6ce
commit c62aeb2b01
4 changed files with 57 additions and 56 deletions

View File

@ -26,18 +26,18 @@ func cmdJoin(g *gocui.Gui, cmd []string) {
channel.MembersType = keybase.TEAM
channel.Name = cmd[1]
channel.TopicName = cmd[2]
printToView(g, "Feed", fmt.Sprintf("You are joining: @%s#%s", channel.Name, channel.TopicName))
clearView(g, "Chat")
go populateChat(g)
printToView("Feed", fmt.Sprintf("You are joining: @%s#%s", channel.Name, channel.TopicName))
clearView("Chat")
go populateChat()
} else if len(cmd) == 2 {
channel.MembersType = keybase.USER
channel.Name = cmd[1]
channel.TopicName = ""
printToView(g, "Feed", fmt.Sprintf("You are joining: @%s", channel.Name))
clearView(g, "Chat")
go populateChat(g)
printToView("Feed", fmt.Sprintf("You are joining: @%s", channel.Name))
clearView("Chat")
go populateChat()
} else {
printToView(g, "Feed", fmt.Sprintf("To join a team use %sjoin <team> <channel>", cmdPrefix))
printToView(g, "Feed", fmt.Sprintf("To join a PM use %sjoin <user>", cmdPrefix))
printToView("Feed", fmt.Sprintf("To join a team use %sjoin <team> <channel>", cmdPrefix))
printToView("Feed", fmt.Sprintf("To join a PM use %sjoin <user>", cmdPrefix))
}
}