Skip to content

Commit

Permalink
fixed threadpreviews sometimes not getting the correct last_message a…
Browse files Browse the repository at this point in the history
…ttribute
  • Loading branch information
Ian committed Jun 19, 2024
1 parent 0c7f5a8 commit 2a6c1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loadpreviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@
AND webtexting_threads.domain_uuid = v_contacts.domain_uuid
AND v_contact_phones.contact_uuid = v_contacts.contact_uuid
AND v_contact_phones.phone_number = :phone_number
AND webtexting_threads.local_number = :own_number
AND webtexting_threads.remote_number = v_contact_phones.phone_number;";
$parameters['domain_uuid'] = $domain_uuid;
$parameters['phone_number'] = $conversation['remote_number'];
$parameters['own_number'] = $ownNumber;
$solo = $database->select($sql, $parameters, 'row');
unset($parameters);

Expand Down

0 comments on commit 2a6c1a5

Please sign in to comment.