Skip to content

Commit

Permalink
Merge pull request #1256 from suraj-webkul/Issue#1198
Browse files Browse the repository at this point in the history
Issue #1198 fixed.
  • Loading branch information
jitendra-webkul committed Jun 19, 2024
2 parents 9ea6015 + eddb410 commit 15e395c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function store()
Mail::send(new Email($email));

$this->emailRepository->update([
'folders' => ['inbox', 'sent']
'folders' => ['sent']
], $email->id);
} catch (\Exception $e) {}
}
Expand All @@ -151,7 +151,7 @@ public function store()

session()->flash('success', trans('admin::app.mail.create-success'));

return redirect()->route('admin.mail.index', ['route' => 'inbox']);
return redirect()->route('admin.mail.index', ['route' => 'sent']);
}

/**
Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Email/src/Repositories/EmailRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function processInboundParseMail($content)
]));
} else {
$this->update([
'folders' => array_unique(array_merge($email->folders, ['inbox'])),
'reference_ids' => array_merge($email->reference_ids ?? [], [$headers['message_id']]),
], $email->id);

Expand Down

0 comments on commit 15e395c

Please sign in to comment.