fix: new incoming messages having 0 attachments in API responses, upload attachments first before sending out websocket updates.

- refactor: stringutils package remove unncessary `string` in function names.
- minor refactors.
This commit is contained in:
Abhinav Raut
2025-02-08 18:04:02 +05:30
parent 37070770bf
commit 356a206110
13 changed files with 52 additions and 44 deletions

View File

@@ -304,10 +304,10 @@ CREATE TABLE media (
store "media_store" NOT NULL,
filename TEXT NOT NULL,
content_type TEXT NOT NULL,
content_id TEXT NULL,
model_id INT NULL,
model_type TEXT NULL,
disposition media_disposition NULL,
content_id TEXT NULL,
"size" INT NULL,
meta jsonb DEFAULT '{}'::jsonb NOT NULL,
CONSTRAINT constraint_media_on_filename CHECK (length(filename) <= 1000),