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:
parent
d13640c466
commit
362e9cf1e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user