Skip to content

Commit

Permalink
fix musonza#234. getParticipation() return unexpected result musonza#294
Browse files Browse the repository at this point in the history
  • Loading branch information
Saifallak committed May 26, 2024
1 parent ec8a4d3 commit ea86a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/ConversationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@ public function getParticipation($participant = null)
{
$participant = $participant ?? $this->participant;

return $participant->participation()->first();
return $participant->participation()->where('conversation_id', $this->conversation->getKey())->first();
}
}

0 comments on commit ea86a8d

Please sign in to comment.