1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 06:27:24 +00:00

Too many terminal bells, put the \a in the wrong spot

This commit is contained in:
Gregory Rudolph
2019-10-09 14:26:22 -04:00
parent 1f016ca09a
commit 45a4dd59f9

View File

@ -357,6 +357,7 @@ func handleMessage(api keybase.ChatAPI) {
// We are in a team
if topicName != channel.TopicName {
printToView("Feed", fmt.Sprintf("[ %s#%s ] %s: %s", channelName, topicName, msgSender, msgBody))
fmt.Print("\a")
}
break
@ -365,10 +366,10 @@ func handleMessage(api keybase.ChatAPI) {
} else {
if msgSender != channel.Name {
printToView("Feed", fmt.Sprintf("PM from @%s: %s", cleanChannelName(channelName), msgBody))
fmt.Print("\a")
}
}
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 {