fix: don't mark sent pms as unread for sender

This commit is contained in:
Roardom
2024-06-19 09:27:37 +00:00
parent e634dfe730
commit dd273f0398
2 changed files with 2 additions and 2 deletions
@@ -91,7 +91,7 @@ class ConversationController extends Controller
'sender_id' => $user->id,
]);
$conversation->users()->sync([$user->id, $recipient->id]);
$conversation->users()->sync([$user->id => ['read' => true], $recipient->id]);
return to_route('users.conversations.show', ['user' => $user, 'conversation' => $conversation])
->withSuccess(trans('pm.sent-success'));