fix(files): allow uploading to root when another user has same name #15

Merged
Esiah merged 2 commits from feat/chat-edits-pins-drag-drop into main 2026-10-22 10:52:23 +00:00

Root is a personal namespace per user, so duplicate checks must scope to the
current owner when uploading at root level. Subfolders keep their existing
uniqueness rules.

Also fixed folder creation at root with the same owner scope.

Root is a personal namespace per user, so duplicate checks must scope to the current owner when uploading at root level. Subfolders keep their existing uniqueness rules. Also fixed folder creation at root with the same owner scope.
gitea-actions bot added 2 commits 2026-10-22 10:51:58 +00:00
Chat messages can now be rewritten by their author only, at any time, with a
"(edited)" marker whose tooltip carries the full date and time down to the
second. The edit is enforced by the SQL filter on user_id, so a message of
someone else answers 404, exactly like a message that does not exist.

Several messages can be pinned at once in the same chat room. Pinning is open
to every member of the room: it is a reading convenience, not a way to take
over someone else's content. A dedicated GET on /chat/pins is required because
the id cursor only reports recent messages, and pinning an old one would
otherwise stay invisible.

The message list is synchronised with two cursors: the id one for new
messages, a timestamp one for rewrites. The server computes that timestamp
before running the query and returns it as-is, in the very frame used by
edited_at, so the client never converts it and cannot drift by a timezone
offset.

Files can now be dropped on the current folder or on any sub-folder card. The
drop zone only reacts to file drags, and the pointer moving from a child
element to another no longer makes the overlay flicker.

A deleted message leaves the pinned list, and its physical file is removed
from the disk as before.
fix(files): allow uploading to root when another user has same name
PR — Ouverture automatique / create-pr (push) Successful in 4s
dc3d0026a4
Root is a personal namespace per user, so duplicate checks must scope to the
current owner when uploading at root level. Subfolders keep their existing
uniqueness rules.

Also fixed folder creation at root with the same owner scope.
Esiah approved these changes 2026-10-22 10:52:16 +00:00
Esiah left a comment
Owner

LGTM

LGTM
Esiah merged commit 699c523caa into main 2026-10-22 10:52:23 +00:00
Esiah deleted branch feat/chat-edits-pins-drag-drop 2026-10-22 10:52:23 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Esiah/CoHaiSe-CLOUD#15