diff --git a/src/api/models/messaging-message.ts b/src/api/models/messaging-message.ts index 90cf1cd71..fcb356c5c 100644 --- a/src/api/models/messaging-message.ts +++ b/src/api/models/messaging-message.ts @@ -67,7 +67,7 @@ export const pack = ( // Populate user _message.user = await packUser(_message.user_id, me); - if (_message.file) { + if (_message.file_id) { // Populate file _message.file = await packFile(_message.file_id); } diff --git a/src/web/app/common/views/components/messaging-room.form.vue b/src/web/app/common/views/components/messaging-room.form.vue index 9b5f1522f..48ccaa4d2 100644 --- a/src/web/app/common/views/components/messaging-room.form.vue +++ b/src/web/app/common/views/components/messaging-room.form.vue @@ -8,18 +8,18 @@ placeholder="%i18n:common.input-message-here%" v-autocomplete="'text'" > -