Merge pull request #12 from jjj333-p/patch-1

make /me parsing more efficient
This commit was merged in pull request #12.
This commit is contained in:
sunglocto authored and GitHub committed 2025-08-09 08:22:09 +01:00
commit f22cfb56c0
1 file changed
+3 -4
+3 -4
View File
@@ -200,10 +200,9 @@ func CreateUITab(chatJidStr string) ChatTabUI {
author.SetText(chatTabs[chatJidStr].Messages[i].Author)
}
if strings.Split(msgContent, " ")[0] == "/me" {
sl := strings.Split(msgContent, " ")
sl[0] = ""
author.SetText(author.Text + strings.Join(sl, " "))
sl := strings.Split(msgContent, " ")
if sl[0] == "/me" {
author.SetText(author.Text + strings.Join(sl[1:], " "))
content.SetText(" ")
}