Skip to content

Commit

Permalink
Merge pull request #3956 from Roardom/fix-system-messages
Browse files Browse the repository at this point in the history
(Fix) Send system messages from system instead of user
  • Loading branch information
HDVinnie authored Jul 2, 2024
2 parents 4094572 + 8c08356 commit ddea582
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 ddea582

Please sign in to comment.