diff --git a/cmd/media.go b/cmd/media.go
index 426764dd..0aa2db13 100644
--- a/cmd/media.go
+++ b/cmd/media.go
@@ -173,7 +173,8 @@ func handleServeMedia(r *fastglue.Request) error {
}
// For messages, check access to the conversation this message is part of.
- if media.Model.String == "messages" {
+ // Skip this check if ModelID is not valid (e.g., inline images uploaded before message is sent).
+ if media.Model.String == "messages" && media.ModelID.Valid {
conversation, err := app.conversation.GetConversationByMessageID(media.ModelID.Int)
if err != nil {
return sendErrorEnvelope(r, err)
diff --git a/frontend/src/components/editor/TextEditor.vue b/frontend/src/components/editor/TextEditor.vue
index f9ea4256..4ebdca5f 100644
--- a/frontend/src/components/editor/TextEditor.vue
+++ b/frontend/src/components/editor/TextEditor.vue
@@ -51,7 +51,6 @@
>
-
+
+
+
+
+
+
+
+
+ Uploading image...
+
+