Skip to content

Commit

Permalink
fix: typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
munafio committed Jan 26, 2023
1 parent b2c48e9 commit f5197f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChatifyMessenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function deleteConversation($user_id)
public function deleteMessage($id)
{
try {
$msg = Message::where('from_id', auth()->id())->where('id', $id)->fristOrFail();
$msg = Message::where('from_id', auth()->id())->where('id', $id)->firstOrFail();
if (isset($msg->attachment)) {
// delete file attached if exist
$path = config('chatify.attachments.folder') . '/' . json_decode($msg->attachment)->new_name;
Expand Down

0 comments on commit f5197f8

Please sign in to comment.