commit 4130121e97257b1672d750c4dc89891e52f3af5f
Author: Jair Sanchez <78786202+jx11r@users.noreply.github.com>
Date: Sat Nov 26 16:53:48 2022 +0000
diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go
index fb65d8d..0208dff 100644
--- a/bridge/helper/helper.go
+++ b/bridge/helper/helper.go
@@ -866 +8612 @@ func GetSubLines(message string, maxLineLength int, clippingMessage string) []st
var lines []string
for _, line := range strings.Split(strings.TrimSpace(message), "\n") {
+ if line == "" {
+ // Prevent sending empty messages, so we'll skip this line
+ // if it has no content.
+ continue
+ }
+
if maxLineLength == 0 || len([]byte(line)) <= maxLineLength {
lines = append(lines, line)
continue