revert: "fix: message_type inconsistency across message end points" (#10119)

Reverts chatwoot/chatwoot#10108
This commit is contained in:
Muhsin Keloth
2024-09-16 20:00:11 +05:30
committed by GitHub
parent 05b8486538
commit 5d52e4e0a6
13 changed files with 22 additions and 40 deletions

View File

@@ -79,7 +79,7 @@ RSpec.describe Message do
external_source_ids: message.external_source_ids,
id: message.id,
inbox_id: message.inbox_id,
message_type: message.message_type.to_i,
message_type: message.message_type_before_type_cast,
private: message.private,
processed_message_content: message.processed_message_content,
sender_id: message.sender_id,