Skip to content

Commit bc9bc6d

Browse files
Fix wrong user viewing conversation - closes #3801
1 parent 27cef80 commit bc9bc6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Conversation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,9 +1728,9 @@ public static function getViewersInfo($conversations, $fields = ['id', 'first_na
17281728
{
17291729
$viewers_cache = \Cache::get('conv_view');
17301730
$viewers = [];
1731-
$first_user_id = null;
17321731
$user_ids = [];
17331732
foreach ($conversations as $conversation) {
1733+
$first_user_id = null;
17341734
if (!empty($viewers_cache[$conversation->id])) {
17351735
// Get replying viewers
17361736
foreach ($viewers_cache[$conversation->id] as $user_id => $viewer) {

0 commit comments

Comments
 (0)