Private
Public Access
Add a Files section to room info listing all sent attachments (#33)
Lists files and images actually attached to sent messages in a room, newest first, with click-through to a lightbox, preview modal, or direct download depending on type. Queries through messages.image_id/file_id so an upload that was never sent doesn't show up as a phantom entry. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,3 +60,16 @@ class RoomMemberRoleUpdate(BaseModel):
|
||||
|
||||
class TransferOwnershipRequest(BaseModel):
|
||||
new_owner_user_id: uuid.UUID
|
||||
|
||||
|
||||
class RoomAttachmentRead(BaseModel):
|
||||
id: uuid.UUID
|
||||
kind: Literal["file", "image"]
|
||||
# None for images -- MessageImage has no stored original filename,
|
||||
# unlike MessageFile (see backend/app/models/message_image.py).
|
||||
filename: str | None
|
||||
content_type: str
|
||||
size_bytes: int
|
||||
uploaded_by: str
|
||||
message_id: uuid.UUID
|
||||
created_at: datetime
|
||||
|
||||
Reference in New Issue
Block a user