Commit 63a810c5 by Tobin

t : sync contact

parent 635f3e2f
...@@ -1877,7 +1877,7 @@ class Webservice_model extends CI_Model { ...@@ -1877,7 +1877,7 @@ class Webservice_model extends CI_Model {
$result = $this->db->query("SELECT CUST.customer_id,CUST.name,CUST.phone,CUST.profile_image, $result = $this->db->query("SELECT CUST.customer_id,CUST.name,CUST.phone,CUST.profile_image,
CUST.profile_image_qr,CHT.type AS friend_status CUST.profile_image_qr,CHT.type AS friend_status
FROM customer AS CUST FROM customer AS CUST
LEFT JOIN chats AS CHT ON ((CUST.customer_id=CHT.from_user OR CUST.customer_id=CHT.to_user) AND CHT.type=1) LEFT JOIN chats AS CHT ON ((CUST.customer_id=CHT.from_user OR CUST.customer_id=CHT.to_user) AND CHT.type IN (0,1))
WHERE CUST.customer_id IN ($user_ids) AND WHERE CUST.customer_id IN ($user_ids) AND
customer_id NOT IN customer_id NOT IN
(SELECT from_user FROM chats (SELECT from_user FROM chats
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment