feat: add error handling modal to ChatWindow and improve call initiation logic

- Introduced ErrorModal in ChatWindow to display error messages related to call initiation issues.
- Enhanced error handling during call initiation to provide user-friendly feedback based on different error scenarios.
- Refactored backend queries to streamline the retrieval of active calls, ensuring accurate status checks.
- Updated function names for clarity and consistency in the backend call management logic.
This commit is contained in:
2025-11-21 16:57:21 -03:00
parent 8fc3cf08c4
commit 9d2f6e7c79
4 changed files with 78 additions and 31 deletions

View File

@@ -860,7 +860,6 @@ export default defineSchema({
criadoEm: v.number(),
})
.index("by_conversa", ["conversaId", "status"])
.index("by_conversa_ativa", ["conversaId", "status"])
.index("by_criado_por", ["criadoPor"])
.index("by_status", ["status"])
.index("by_room_name", ["roomName"]),