1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-23 13:47:23 +00:00

Moved topicType to /join command

This commit is contained in:
Ricardo Balk
2020-04-12 15:35:04 +02:00
parent 01bb599f56
commit 6cb1888186
2 changed files with 6 additions and 1 deletions

View File

@ -41,6 +41,12 @@ func cmdJoin(cmd []string) {
channel.TopicName = "" channel.TopicName = ""
channel.MembersType = keybase.USER channel.MembersType = keybase.USER
} }
if dev {
channel.TopicType = "dev"
} else {
channel.TopicType = "chat"
}
printInfoF("You are joining: $TEXT", config.Colors.Message.LinkKeybase.stylize(joinedName)) printInfoF("You are joining: $TEXT", config.Colors.Message.LinkKeybase.stylize(joinedName))
clearView("Chat") clearView("Chat")
setViewTitle("Input", fmt.Sprintf(" %s ", joinedName)) setViewTitle("Input", fmt.Sprintf(" %s ", joinedName))

View File

@ -42,7 +42,6 @@ func main() {
defer g.Close() defer g.Close()
g.SetManagerFunc(layout) g.SetManagerFunc(layout)
RunCommand("config", "load") RunCommand("config", "load")
if dev { channel.TopicType = "dev" } else { channel.TopicType = "chat" }
go populateList() go populateList()
go updateChatWindow() go updateChatWindow()
if len(os.Args) > 1 { if len(os.Args) > 1 {