From bb2a2c618b81d2f35a666d1547b4c27f1d0bc5f0 Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Fri, 28 Feb 2025 12:43:22 +0000 Subject: [PATCH] Don't lose formatting in draft comment When displaying a bubble in the `creating` state, we were wrongly using the plaintext version of the draft comment. This has the effect of losing formatting whenever the page is saved and reloaded. --- app/models/bubble/messages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bubble/messages.rb b/app/models/bubble/messages.rb index e30f3dc62..9f89466dc 100644 --- a/app/models/bubble/messages.rb +++ b/app/models/bubble/messages.rb @@ -11,7 +11,7 @@ module Bubble::Messages end def draft_comment - find_or_build_initial_comment.body_plain_text + find_or_build_initial_comment.body.content end def draft_comment=(body)