mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Server fixes: - Move ATTACH_FILES permission check before CreateMessage to prevent orphaned messages on permission denial - Fix hardcoded /api/files/ URL to /api/v1/files/ per spec - Add error logging for GetAttachmentsByMessageIDs failure - Set 1MB WebSocket read limit to match client-side limit - Extract requireChannelPerm helper, replacing 8 repeated patterns Client fixes: - Wire onUnauthorized callback to clear auth on 401 responses - Store auth token in authStore before WS connect - Reset WS state to disconnected when Tauri APIs unavailable - Add connectivity guard and 200ms send debounce on message send - Add toast container to MainPage with error feedback on 5 API failures - Clear voice currentChannelId on server-driven voice_leave for current user - Apply stored theme/font/compact preferences at app startup - Fix infinite scroll throttle to use store subscription instead of fixed timer Tests: - Add TestChatSend_AttachmentsDeniedNoMessageCreated - Add attachments table to handler test schema