diff options
Diffstat (limited to 'models')
| -rw-r--r-- | models/models.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go index 30ec5f5..d15e0d1 100644 --- a/models/models.go +++ b/models/models.go @@ -167,7 +167,6 @@ func (m *RoleMsg) UnmarshalJSON(data []byte) error { } func (m *RoleMsg) ToText(i int) string { - icon := fmt.Sprintf("(%d)", i) // Convert content to string representation var contentStr string if !m.hasContentParts { @@ -193,7 +192,7 @@ func (m *RoleMsg) ToText(i int) string { // since icon and content are separated by \n contentStr, _ = strings.CutPrefix(contentStr, m.Role+":") // if !strings.HasPrefix(contentStr, m.Role+":") { - icon = fmt.Sprintf("(%d) <%s>: ", i, m.Role) + icon := fmt.Sprintf("(%d) <%s>: ", i, m.Role) // } textMsg := fmt.Sprintf("[-:-:b]%s[-:-:-]\n%s\n", icon, contentStr) return strings.ReplaceAll(textMsg, "\n\n", "\n") |
