Added titles to feed and channels, as well as ring terminal bell when feed is populated

This commit is contained in:
Gregory Rudolph
2019-10-09 14:20:54 -04:00
parent 21f2d29289
commit 1f016ca09a

View File

@ -244,7 +244,7 @@ func layout(g *gocui.Gui) error {
}
feedView.Autoscroll = true
feedView.Wrap = true
feedView.Title = "Feed"
feedView.Title = "Feed Window"
fmt.Fprintln(feedView, "Feed Window - If you are mentioned or receive a PM it will show here")
}
if chatView, err2 := g.SetView("Chat", maxX/2-maxX/3, maxY/5+1, maxX-1, maxY-5); err2 != nil {
@ -272,6 +272,7 @@ func layout(g *gocui.Gui) error {
if err4 != gocui.ErrUnknownView {
return err4
}
listView.Title = "Channels"
fmt.Fprintf(listView, "Lists\nWindow\nTo view\n activity")
}
return nil
@ -367,6 +368,7 @@ func handleMessage(api keybase.ChatAPI) {
}
}
fmt.Print("\a")
}
if api.Msg.Channel.MembersType == channel.MembersType && cleanChannelName(api.Msg.Channel.Name) == channel.Name {
if channel.MembersType == keybase.TEAM && channel.TopicName != api.Msg.Channel.TopicName {