|
|
@ -143,7 +143,7 @@ func sendChat(message string) { |
|
|
|
func formatOutput(api keybase.ChatAPI) string { |
|
|
|
func formatOutput(api keybase.ChatAPI) string { |
|
|
|
ret := "" |
|
|
|
ret := "" |
|
|
|
msgType := api.Msg.Content.Type |
|
|
|
msgType := api.Msg.Content.Type |
|
|
|
switch (msgType) { |
|
|
|
switch msgType { |
|
|
|
case "text", "attachment": |
|
|
|
case "text", "attachment": |
|
|
|
var c = messageHeaderColor |
|
|
|
var c = messageHeaderColor |
|
|
|
ret = colorText(outputFormat, c, noColor) |
|
|
|
ret = colorText(outputFormat, c, noColor) |
|
|
@ -180,9 +180,9 @@ func populateList() { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
clearView("List") |
|
|
|
clearView("List") |
|
|
|
var recentPMs = fmt.Sprintf("%s---[PMs]---%s\n", channelsHeaderColor, channelsColor); |
|
|
|
var recentPMs = fmt.Sprintf("%s---[PMs]---%s\n", channelsHeaderColor, channelsColor) |
|
|
|
var recentPMsCount = 0 |
|
|
|
var recentPMsCount = 0 |
|
|
|
var recentChannels = fmt.Sprintf("%s---[Teams]---%s\n", channelsHeaderColor, channelsColor); |
|
|
|
var recentChannels = fmt.Sprintf("%s---[Teams]---%s\n", channelsHeaderColor, channelsColor) |
|
|
|
var recentChannelsCount = 0 |
|
|
|
var recentChannelsCount = 0 |
|
|
|
for _, s := range testVar.Result.Conversations { |
|
|
|
for _, s := range testVar.Result.Conversations { |
|
|
|
channels = append(channels, s.Channel) |
|
|
|
channels = append(channels, s.Channel) |
|
|
|