For 'original' attachments, always use the attachment link from the DMs, even in staff replies
parent
c761802ddd
commit
7196e690a2
|
@ -274,8 +274,13 @@ class Thread {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Special case: "original" attachments
|
||||||
|
if (config.attachmentStorage === "original") {
|
||||||
|
threadMessage.attachments = dmMessage.attachments.map(att => att.url);
|
||||||
|
}
|
||||||
|
|
||||||
threadMessage.dm_message_id = dmMessage.id;
|
threadMessage.dm_message_id = dmMessage.id;
|
||||||
await this._updateThreadMessage(threadMessage.id, { dm_message_id: dmMessage.id });
|
await this._updateThreadMessage(threadMessage.id, threadMessage.getSQLProps());
|
||||||
|
|
||||||
// Show the reply in the inbox thread
|
// Show the reply in the inbox thread
|
||||||
const inboxMessage = await this._postToThreadChannel(inboxContent, files);
|
const inboxMessage = await this._postToThreadChannel(inboxContent, files);
|
||||||
|
|
Loading…
Reference in New Issue