iachat/app/services/conversations
Pranav 0d9c0b2ed2
fix: Force account_id in the query (#13388)
### What

Forces `account_id` to be applied consistently in queries and message creation paths.

### Why

Some queries were missing `account_id`, leading to cross-account scans and slow performance in large datasets.

### Changes

* Added `account_id` to the relevant query columns.
* Ensured messages are always created within the correct account scope.
* Updated `created_at` handling where required for consistency.

### Impact

* Prevents cross-account queries.
* Improves query performance.
* Reduces risk of incorrect data access across accounts.

### Notes

No functional behavior change for end users. This is a performance and safety fix.
2026-01-28 14:51:24 -08:00
..
assignment_service.rb feat: APIs to assign agents_bots as assignee in conversations (#12836) 2025-11-18 18:20:58 -08:00
filter_service.rb feat: Add support for search_conversations in copilot (#11520) 2025-05-20 19:22:17 -07:00
message_window_service.rb fix: Force account_id in the query (#13388) 2026-01-28 14:51:24 -08:00
permission_filter_service.rb feat: Add support for search_conversations in copilot (#11520) 2025-05-20 19:22:17 -07:00
typing_status_manager.rb feat: add activity message for priority change (#6933) 2023-04-20 16:41:53 +05:30