From 9bb1bb60bd23e8cc25b338278cf53000fdf873e1 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 17 Oct 2019 10:33:37 -0400 Subject: [PATCH] Odd bug with attachments displaying a random message, squashed. --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 914f8f5..dd3bf0e 100644 --- a/main.go +++ b/main.go @@ -363,9 +363,8 @@ func formatOutput(api keybase.ChatAPI) string { msg = colorRegex(msg, `(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*))`, messageLinkColor, messageBodyColor) msg = colorText(colorReplaceMentionMe(msg, messageBodyColor), messageBodyColor, c) if msgType == "attachment" { - msg = fmt.Sprintf("%s\n%s", msg, colorText("[Attachment]", messageAttachmentColor, c)) + msg = fmt.Sprintf("%s", colorText("[Attachment]", messageAttachmentColor, c)) } - user := colorUsername(api.Msg.Sender.Username, c) device := colorText(api.Msg.Sender.DeviceName, messageSenderDeviceColor, c) msgID := colorText(fmt.Sprintf("%d", api.Msg.ID), messageIdColor, c)