From a48cd6f2137a1302f788f465a8e753017b2ae667 Mon Sep 17 00:00:00 2001 From: krustowski Date: Thu, 12 Sep 2024 13:46:43 +0200 Subject: [PATCH] fix incomplete posts sending by to ctrl-enter shortcut --- pkg/frontend/flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/frontend/flow.go b/pkg/frontend/flow.go index 22d7f0c7..f74ca708 100644 --- a/pkg/frontend/flow.go +++ b/pkg/frontend/flow.go @@ -362,7 +362,7 @@ func (c *flowContent) handleReply(ctx app.Context, a app.Action) { replyPost := c.replyPostContent if !app.Window().GetElementByID("reply-textarea").IsNull() { - replyPostFull = strings.TrimSpace(app.Window().GetElementByID("reply-textarea").Get("value").String()) + replyPostFull := strings.TrimSpace(app.Window().GetElementByID("reply-textarea").Get("value").String()) if len(replyPost) < len(replyPostFull) { replyPost = replyPostFull