From 9971f8159110a0fe00e09ef8ce22fb7ac393776c Mon Sep 17 00:00:00 2001 From: Mohamed El-Sawy Date: Sun, 7 Jul 2024 19:37:44 +0300 Subject: [PATCH] CV2-4696: set message type for short text (#1947) --- app/models/concerns/smooch_messages.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/concerns/smooch_messages.rb b/app/models/concerns/smooch_messages.rb index bce9555148..27311dc759 100644 --- a/app/models/concerns/smooch_messages.rb +++ b/app/models/concerns/smooch_messages.rb @@ -307,6 +307,7 @@ def bundle_list_of_messages_to_items(list, last) # No messages exist (this happens when all messages are short text) # So will create a new message of type text and assign short text to it message = last.clone + message['type'] = 'text' message['text'] = all_text messages << message else