Skip to content

Commit 0a6f785

Browse files
committed
refactor lists() to pluck(), missed in #152
1 parent b5b2ff6 commit 0a6f785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cmgmyr/Messenger/Traits/Messagable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function threadsWithNewMessages()
6363
{
6464
$threadsWithNewMessages = [];
6565

66-
$participants = Models::participant()->where('user_id', $this->id)->lists('last_read', 'thread_id');
66+
$participants = Models::participant()->where('user_id', $this->id)->pluck('last_read', 'thread_id');
6767

6868
/**
6969
* @todo: see if we can fix this more in the future.

0 commit comments

Comments
 (0)