From ea86a8d5ea0848c5fd9e1e97876efbd35061ddbb Mon Sep 17 00:00:00 2001 From: Saifallak Date: Sun, 26 May 2024 19:21:45 +0300 Subject: [PATCH] fix #234. getParticipation() return unexpected result #294 --- src/Services/ConversationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/ConversationService.php b/src/Services/ConversationService.php index 83b4bcb..bff8bac 100644 --- a/src/Services/ConversationService.php +++ b/src/Services/ConversationService.php @@ -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(); } }