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:
@ -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))
|
||||||
|
|||||||
1
main.go
1
main.go
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user