Skip to content

Commit

Permalink
fix: send system messages from system instead of user
Browse files Browse the repository at this point in the history
  • Loading branch information
Roardom committed Jul 2, 2024
1 parent 8723e23 commit 8c08356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ public function sendSystemNotification(string $subject, string $message): void

PrivateMessage::create([
'conversation_id' => $conversation->id,
'sender_id' => $this->id,
'sender_id' => self::SYSTEM_USER_ID,
'message' => $message
]);
}
Expand All @@ -931,7 +931,7 @@ public static function sendSystemNotificationTo(int $userId, string $subject, st

PrivateMessage::create([
'conversation_id' => $conversation->id,
'sender_id' => $userId,
'sender_id' => self::SYSTEM_USER_ID,
'message' => $message
]);
}
Expand Down

0 comments on commit 8c08356

Please sign in to comment.