Root Cause
The issue arose because the chat records were not linked to the channel object as expected. This lack of connection led to the problems experienced.
Resolution
To resolve the issue, the project was rolled back to a previous version, and changes were reversed. A fix was then applied to ensure that the chat and channel relationship is established, preventing further errors.
Action Plan
During the incident, changes were reversed. Afterward, a fix was implemented to establish the chat-channel relationship, preventing recurrence. Additionally, alerts were set up to notify about any future issues.