fix: mark staff report replies as read automatically

This commit is contained in:
Roardom
2024-07-02 21:14:03 +00:00
parent 8723e234f5
commit 11257ae7a0

View File

@@ -66,7 +66,7 @@ class ReportController extends Controller
$conversation = Conversation::create(['subject' => 'Your Report Has A New Verdict']);
$conversation->users()->sync([$staff->id, $report->reporter_id]);
$conversation->users()->sync([$staff->id => ['read' => true], $report->reporter_id]);
PrivateMessage::create([
'conversation_id' => $conversation->id,