Skip to content

Commit

Permalink
fix incomplete posts sending by to ctrl-enter shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Sep 12, 2024
1 parent 3df371b commit a48cd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/frontend/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a48cd6f

Please sign in to comment.