1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 03:43:33 +01:00

Check mailbox when fetching replies

This commit is contained in:
FreeScout 2019-07-24 23:58:00 -07:00
parent d13640c466
commit 362e9cf1e6

View File

@ -380,6 +380,15 @@ class FetchEmails extends Command
}
}
// Make sure that prev_thread belongs to the current mailbox.
// It may happen when forwarding conversation for example.
if ($prev_thread) {
if ($prev_thread->conversation->mailbox_id != $mailbox->id) {
$prev_thread = null;
$is_reply = false;
}
}
// Get body
if (!$html_body) {
// Get body and do not replace :cid with images base64